diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-05-01 15:56:16 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-05-01 15:56:16 +0200 |
| commit | c608d5104df7b7281e35595552734d77e42b5036 (patch) | |
| tree | a313e302b8897bdf974bedf9e5c689c0457e4003 /MediaBrowser.Controller/Library | |
| parent | 360d80c873c04a9f61ded160615f161bfcdb4f74 (diff) | |
Fix scanning
Diffstat (limited to 'MediaBrowser.Controller/Library')
| -rw-r--r-- | MediaBrowser.Controller/Library/ItemResolveArgs.cs | 2 |
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); |
