aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Library
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-05-01 17:43:12 +0200
committerGitHub <noreply@github.com>2021-05-01 17:43:12 +0200
commit9a8c08b3e789e350dd542c71bb03030dcb0a953d (patch)
tree975521b47a23c5ee21e63e247f5120fea5ab6ab2 /MediaBrowser.Controller/Library
parent214ab0b45fe6dff78af3e4e92d7b5a5a53464dec (diff)
parentc608d5104df7b7281e35595552734d77e42b5036 (diff)
Merge pull request #5945 from Bond-009/fix
Fix scanning
Diffstat (limited to 'MediaBrowser.Controller/Library')
-rw-r--r--MediaBrowser.Controller/Library/ItemResolveArgs.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Library/ItemResolveArgs.cs b/MediaBrowser.Controller/Library/ItemResolveArgs.cs
index df8842237..f86f7df25 100644
--- a/MediaBrowser.Controller/Library/ItemResolveArgs.cs
+++ b/MediaBrowser.Controller/Library/ItemResolveArgs.cs
@@ -87,7 +87,7 @@ namespace MediaBrowser.Controller.Library
return false;
}
- var parentDir = FileInfo.DirectoryName ?? string.Empty;
+ var parentDir = System.IO.Path.GetDirectoryName(Path) ?? string.Empty;
return parentDir.Length > _appPaths.RootFolderPath.Length
&& parentDir.StartsWith(_appPaths.RootFolderPath, StringComparison.OrdinalIgnoreCase);