Merge pull request #2153 from dkanada/fix-playlist

Fix playlist deletion and a few warning fixes
This commit is contained in:
dkanada
2020-01-01 15:00:57 +09:00
committed by GitHub
3 changed files with 28 additions and 16 deletions

View File

@@ -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
{