mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-22 22:43:31 -07: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 @@ 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue