mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-16 21:15:33 -04:00
Now hidden files are ignored :). Fixes #166.
This commit is contained in:
@@ -149,7 +149,11 @@ namespace NzbDrone.Core.RootFolders
|
||||
foreach (string unmappedFolder in unmappedFolders)
|
||||
{
|
||||
var di = new DirectoryInfo(unmappedFolder.Normalize());
|
||||
results.Add(new UnmappedFolder { Name = di.Name, Path = di.FullName });
|
||||
if (!di.Attributes.HasFlag(FileAttributes.System) && !di.Attributes.HasFlag(FileAttributes.Hidden))
|
||||
{
|
||||
results.Add(new UnmappedFolder { Name = di.Name, Path = di.FullName });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var setToRemove = SpecialFolders;
|
||||
|
||||
Reference in New Issue
Block a user