diff --git a/Source/FileManager/BackgroundFileSystem.cs b/Source/FileManager/BackgroundFileSystem.cs index f44c2274..e4b2b10b 100644 --- a/Source/FileManager/BackgroundFileSystem.cs +++ b/Source/FileManager/BackgroundFileSystem.cs @@ -134,7 +134,8 @@ namespace FileManager private void AddPath(string path) { - if (!File.Exists(path)) return; + if (!File.Exists(path) && !Directory.Exists(path)) + return; if (File.GetAttributes(path).HasFlag(FileAttributes.Directory)) AddUniqueFiles(FileUtility.SaferEnumerateFiles(path, SearchPattern, SearchOption)); else