From 4a8960fc866143e7107a5bc41527db6c5581974f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 2 Apr 2017 00:45:57 -0400 Subject: 3.2.10.4 --- Emby.Common.Implementations/IO/SharpCifsFileSystem.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Emby.Common.Implementations/IO/SharpCifsFileSystem.cs') diff --git a/Emby.Common.Implementations/IO/SharpCifsFileSystem.cs b/Emby.Common.Implementations/IO/SharpCifsFileSystem.cs index f2157b7af..c1e429dc9 100644 --- a/Emby.Common.Implementations/IO/SharpCifsFileSystem.cs +++ b/Emby.Common.Implementations/IO/SharpCifsFileSystem.cs @@ -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); -- cgit v1.2.3