pull/11410/head
John M 2 months ago
parent 374b6ca0e2
commit 21828c4293

@ -116,7 +116,7 @@ public class CleanupCollectionAndPlaylistPathsTask : IScheduledTask
foreach (var linkedChild in folder.LinkedChildren)
{
var path = linkedChild.Path;
if (Path.HasExtension(path) ? !File.Exists(path) : !Directory.Exists(path))
if (!File.Exists(path) && !Directory.Exists(path))
{
_logger.LogInformation("Item in {FolderName} cannot be found at {ItemPath}", folder.Name, path);
(itemsToRemove ??= new List<LinkedChild>()).Add(linkedChild);

Loading…
Cancel
Save