Browse Source

remove directory check

dkanada 5 years ago
parent
commit
c10cb66169
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Emby.Server.Implementations/Library/LibraryManager.cs

+ 1 - 1
Emby.Server.Implementations/Library/LibraryManager.cs

@@ -394,7 +394,7 @@ namespace Emby.Server.Implementations.Library
 
                 foreach (var fileSystemInfo in item.GetDeletePaths())
                 {
-                    if (fileSystemInfo.IsDirectory ? Directory.Exists(fileSystemInfo.FullName) : File.Exists(fileSystemInfo.FullName))
+                    if (Directory.Exists(fileSystemInfo.FullName) || File.Exists(fileSystemInfo.FullName))
                     {
                         try
                         {