This commit is contained in:
Luke Pulverenti
2017-04-02 00:45:57 -04:00
parent 6e4d234212
commit 4a8960fc86
3 changed files with 19 additions and 9 deletions

View File

@@ -30,6 +30,16 @@ namespace Emby.Common.Implementations.IO
return path.StartsWith("smb://", StringComparison.OrdinalIgnoreCase) || IsUncPath(path);
}
public char GetDirectorySeparatorChar(string path)
{
if (path.IndexOf('/') != -1)
{
return '/';
}
return '\\';
}
public FileSystemMetadata GetFileSystemInfo(string path)
{
var file = CreateSmbFile(path);