mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-27 12:34:56 +01:00
Unwrapped GetDirectoryName and DirectorySeperatorChar
This commit is contained in:
@@ -189,7 +189,7 @@ namespace Emby.Server.Implementations.IO
|
||||
{
|
||||
item = LibraryManager.FindByPath(path, null);
|
||||
|
||||
path = _fileSystem.GetDirectoryName(path);
|
||||
path = System.IO.Path.GetDirectoryName(path);
|
||||
}
|
||||
|
||||
if (item != null)
|
||||
|
||||
@@ -483,7 +483,7 @@ namespace Emby.Server.Implementations.IO
|
||||
}
|
||||
|
||||
// Go up a level
|
||||
var parent = _fileSystem.GetDirectoryName(i);
|
||||
var parent = Path.GetDirectoryName(i);
|
||||
if (!string.IsNullOrEmpty(parent))
|
||||
{
|
||||
if (_fileSystem.AreEqual(parent, path))
|
||||
@@ -509,7 +509,7 @@ namespace Emby.Server.Implementations.IO
|
||||
|
||||
private void CreateRefresher(string path)
|
||||
{
|
||||
var parentPath = _fileSystem.GetDirectoryName(path);
|
||||
var parentPath = Path.GetDirectoryName(path);
|
||||
|
||||
lock (_activeRefreshers)
|
||||
{
|
||||
@@ -538,7 +538,7 @@ namespace Emby.Server.Implementations.IO
|
||||
}
|
||||
|
||||
// They are siblings. Rebase the refresher to the parent folder.
|
||||
if (string.Equals(parentPath, _fileSystem.GetDirectoryName(refresher.Path), StringComparison.Ordinal))
|
||||
if (string.Equals(parentPath, Path.GetDirectoryName(refresher.Path), StringComparison.Ordinal))
|
||||
{
|
||||
refresher.ResetPath(parentPath, path);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user