Vacation Fixes (#709)
* Ignore system and hidden folders when performing directory scan. * Fixed the comic parser tests not using Comic mode for parsing. * Accept all forwarded headers and use them. * Ignore some changes from another branch
This commit is contained in:
parent
f99cf87ab5
commit
7ce13babad
4 changed files with 35 additions and 4 deletions
|
@ -375,8 +375,11 @@ namespace API.Services
|
|||
IEnumerable<string> subDirs;
|
||||
string[] files;
|
||||
|
||||
try {
|
||||
subDirs = Directory.GetDirectories(currentDir).Where(path => ExcludeDirectories.Matches(path).Count == 0);
|
||||
try
|
||||
{
|
||||
// Default EnumerationOptions will ignore system and hidden folders
|
||||
subDirs = Directory.GetDirectories(currentDir, "*", new EnumerationOptions())
|
||||
.Where(path => ExcludeDirectories.Matches(path).Count == 0);
|
||||
}
|
||||
// Thrown if we do not have discovery permission on the directory.
|
||||
catch (UnauthorizedAccessException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue