|
|
@ -356,7 +356,7 @@ namespace Emby.Server.Implementations.Library
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var children = item.IsFolder
|
|
|
|
var children = item.IsFolder
|
|
|
|
? ((Folder)item).GetRecursiveChildren(false)
|
|
|
|
? ((Folder)item).GetRecursiveChildren(false).ToList()
|
|
|
|
: new List<BaseItem>();
|
|
|
|
: new List<BaseItem>();
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var metadataPath in GetMetadataPaths(item, children))
|
|
|
|
foreach (var metadataPath in GetMetadataPaths(item, children))
|
|
|
@ -612,7 +612,8 @@ namespace Emby.Server.Implementations.Library
|
|
|
|
|
|
|
|
|
|
|
|
var list = originalList.Where(i => i.IsDirectory)
|
|
|
|
var list = originalList.Where(i => i.IsDirectory)
|
|
|
|
.Select(i => _fileSystem.NormalizePath(i.FullName))
|
|
|
|
.Select(i => _fileSystem.NormalizePath(i.FullName))
|
|
|
|
.Distinct(StringComparer.OrdinalIgnoreCase);
|
|
|
|
.Distinct(StringComparer.OrdinalIgnoreCase)
|
|
|
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
|
|
var dupes = list.Where(subPath => !subPath.EndsWith(":\\", StringComparison.OrdinalIgnoreCase) && list.Any(i => _fileSystem.ContainsSubPath(i, subPath)));
|
|
|
|
var dupes = list.Where(subPath => !subPath.EndsWith(":\\", StringComparison.OrdinalIgnoreCase) && list.Any(i => _fileSystem.ContainsSubPath(i, subPath)));
|
|
|
|
|
|
|
|
|
|
|
|