mirror of
https://github.com/Radarr/Radarr
synced 2025-02-25 15:43:08 +00:00
Now hidden files are ignored :). Fixes #166.
This commit is contained in:
parent
92e9dc6ee1
commit
81ebbcad70
1 changed files with 5 additions and 1 deletions
|
@ -149,7 +149,11 @@ private List<UnmappedFolder> GetUnmappedFolders(string path)
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue