Fixed: Hidden files being ignored

(cherry picked from commit d493f8762fcb1684b44e182753c21d7a493db787)
This commit is contained in:
Mark McDowall 2023-08-17 21:21:46 -07:00 committed by Bogdan
parent e024bba6b6
commit 955bc472a1

View file

@ -162,6 +162,7 @@ namespace NzbDrone.Common.Disk
return Directory.EnumerateFiles(path, "*", new EnumerationOptions
{
AttributesToSkip = FileAttributes.System,
RecurseSubdirectories = recursive,
IgnoreInaccessible = true
});
@ -528,6 +529,7 @@ namespace NzbDrone.Common.Disk
return di.EnumerateFiles("*", new EnumerationOptions
{
AttributesToSkip = FileAttributes.System,
RecurseSubdirectories = recursive,
IgnoreInaccessible = true
}).ToList();