mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Special folders also apply to RootFolder unmapped folders
This commit is contained in:
parent
26dbafee08
commit
19906e0350
3 changed files with 22 additions and 6 deletions
|
@ -35,8 +35,8 @@ namespace NzbDrone.Common
|
|||
|
||||
if (Path.GetPathRoot(path).Equals(path, StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
var setToRemove = new HashSet<string> { "$Recycle.Bin", "System Volume Information" };
|
||||
dirsList.RemoveAll(x => setToRemove.Contains(new DirectoryInfo(x).Name));
|
||||
var setToRemove = _diskProvider.SpecialFolders;
|
||||
dirsList.RemoveAll(x => setToRemove.Contains(new DirectoryInfo(x.ToLowerInvariant()).Name));
|
||||
}
|
||||
|
||||
dirs = dirsList;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue