The Free Software Media System - Server Backend & API
#11289 Fixed cleanup task not checking for folders (#11311)
JPVenson81d37587854b
diff --git a/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionAndPlaylistPathsTask.cs b/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionAndPlaylistPathsTask.csindex 812df81922..f1c4d9b472 100644--- a/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionAndPlaylistPathsTask.cs+++ b/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionAndPlaylistPathsTask.cs@@ -116,7 +116,7 @@ public class CleanupCollectionAndPlaylistPathsTask : IScheduledTaskforeach (var linkedChild in folder.LinkedChildren){var path = linkedChild.Path;- if (!File.Exists(path))+ if (Path.HasExtension(path) ? !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);