From 3e5d780424d2d1b95d0403a14871c08b20308a6c Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 17 Aug 2023 21:21:46 -0700 Subject: [PATCH] Fixed: Hidden files being ignored (cherry picked from commit d493f8762fcb1684b44e182753c21d7a493db787) Closes #4022 --- src/NzbDrone.Common/Disk/DiskProviderBase.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NzbDrone.Common/Disk/DiskProviderBase.cs b/src/NzbDrone.Common/Disk/DiskProviderBase.cs index dfdb6b54c..b5d9829ff 100644 --- a/src/NzbDrone.Common/Disk/DiskProviderBase.cs +++ b/src/NzbDrone.Common/Disk/DiskProviderBase.cs @@ -176,6 +176,7 @@ namespace NzbDrone.Common.Disk return _fileSystem.Directory.EnumerateFiles(path, "*", new EnumerationOptions { + AttributesToSkip = FileAttributes.System, RecurseSubdirectories = recursive, IgnoreInaccessible = true }); @@ -517,6 +518,7 @@ namespace NzbDrone.Common.Disk return di.EnumerateFiles("*", new EnumerationOptions { + AttributesToSkip = FileAttributes.System, RecurseSubdirectories = recursive, IgnoreInaccessible = true }).ToList();