Fix cleanup for BDMV

This commit is contained in:
Shadowghost
2026-02-17 22:59:03 +01:00
parent 0f75518287
commit f96c399e62

View File

@@ -404,8 +404,9 @@ internal class MigrateLinkedChildren : IDatabaseMigrationRoutine
if (accessiblePaths.Any(p => path.StartsWith(p, StringComparison.OrdinalIgnoreCase)))
{
// Item is under an accessible library location — check if the file still exists
if (!File.Exists(path))
// Item is under an accessible library location — check if it still exists
// Directory check covers BDMV/DVD items whose Path points to a folder
if (!File.Exists(path) && !Directory.Exists(path))
{
staleIds.Add(item.Id);
}