mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-11 08:10:34 +02:00
fixed user collections not getting populated
This commit is contained in:
parent
911a60971f
commit
16e9a7e42f
|
@ -50,7 +50,20 @@ namespace MediaBrowser.Controller.IO
|
||||||
|
|
||||||
var data = FileSystem.GetFileSystemInfo(newPath);
|
var data = FileSystem.GetFileSystemInfo(newPath);
|
||||||
|
|
||||||
dict[data.FullName] = data;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (flattenFolderDepth > 0 && isDirectory)
|
else if (flattenFolderDepth > 0 && isDirectory)
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,7 +34,7 @@ namespace MediaBrowser.Controller.IO
|
||||||
{
|
{
|
||||||
var fileInfo = new DirectoryInfo(path);
|
var fileInfo = new DirectoryInfo(path);
|
||||||
|
|
||||||
if (fileInfo.Exists || path.EndsWith(":\\", StringComparison.OrdinalIgnoreCase))
|
if (fileInfo.Exists)
|
||||||
{
|
{
|
||||||
return fileInfo;
|
return fileInfo;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue