mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Check for path overlaps (#12832)
This commit is contained in:
@@ -768,8 +768,6 @@ namespace Emby.Server.Implementations.Library
|
||||
{
|
||||
var rootFolderPath = _configurationManager.ApplicationPaths.RootFolderPath;
|
||||
|
||||
Directory.CreateDirectory(rootFolderPath);
|
||||
|
||||
var rootFolder = GetItemById(GetNewItemId(rootFolderPath, typeof(AggregateFolder))) as AggregateFolder ??
|
||||
(ResolvePath(_fileSystem.GetDirectoryInfo(rootFolderPath)) as Folder ?? throw new InvalidOperationException("Something went very wong"))
|
||||
.DeepCopy<Folder, AggregateFolder>();
|
||||
|
||||
Reference in New Issue
Block a user