aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-01-01 15:00:57 +0900
committerGitHub <noreply@github.com>2020-01-01 15:00:57 +0900
commit529cff3920abbeb521a54cc4f2d16258b1167eaf (patch)
treebf7752de7dba70eddde1b873d71248d3fbee3232 /Emby.Server.Implementations/Library
parente476125cf8fdfb483920a4a206275470562f187d (diff)
parentc10cb661694fca763ec4e5be30110ce077a0b428 (diff)
Merge pull request #2153 from dkanada/fix-playlist
Fix playlist deletion and a few warning fixes
Diffstat (limited to 'Emby.Server.Implementations/Library')
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index 6942088fe..cee51479e 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -392,9 +392,9 @@ namespace Emby.Server.Implementations.Library
// Add this flag to GetDeletePaths if required in the future
var isRequiredForDelete = true;
- foreach (var fileSystemInfo in item.GetDeletePaths().ToList())
+ foreach (var fileSystemInfo in item.GetDeletePaths())
{
- if (File.Exists(fileSystemInfo.FullName))
+ if (Directory.Exists(fileSystemInfo.FullName) || File.Exists(fileSystemInfo.FullName))
{
try
{