|
|
@ -50,8 +50,21 @@ namespace MediaBrowser.Controller.IO
|
|
|
|
|
|
|
|
|
|
|
|
var data = FileSystem.GetFileSystemInfo(newPath);
|
|
|
|
var data = FileSystem.GetFileSystemInfo(newPath);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (data.Exists)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// Find out if the shortcut is pointing to a directory or file
|
|
|
|
|
|
|
|
if (data.Attributes.HasFlag(FileAttributes.Directory))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// add to our physical locations
|
|
|
|
|
|
|
|
if (args != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
args.AddAdditionalLocation(newPath);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dict[data.FullName] = data;
|
|
|
|
dict[data.FullName] = data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (flattenFolderDepth > 0 && isDirectory)
|
|
|
|
else if (flattenFolderDepth > 0 && isDirectory)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
foreach (var child in GetFilteredFileSystemEntries(entry.FullName, logger, flattenFolderDepth: flattenFolderDepth - 1, resolveShortcuts: resolveShortcuts))
|
|
|
|
foreach (var child in GetFilteredFileSystemEntries(entry.FullName, logger, flattenFolderDepth: flattenFolderDepth - 1, resolveShortcuts: resolveShortcuts))
|
|
|
|