Explorar o código

remove directory check

dkanada %!s(int64=5) %!d(string=hai) anos
pai
achega
c10cb66169
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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())
                 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
                         try
                         {
                         {