From 95eaf88abd6a979b19f4ee998936ba6f2f4eef4b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 9 Nov 2014 23:20:11 -0500 Subject: fixes #943 - Add web client filtering by genres, parental ratings, tags and years --- .../IO/CommonFileSystem.cs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs') diff --git a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs index 131dea36e..68df0e52a 100644 --- a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs +++ b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs @@ -398,14 +398,16 @@ namespace MediaBrowser.Common.Implementations.IO throw new ArgumentNullException("path"); } - //if (path.IndexOf("://", StringComparison.OrdinalIgnoreCase) != -1 && - // !path.StartsWith("file://", StringComparison.OrdinalIgnoreCase)) - //{ - // return false; - //} - //return true; - - return Path.IsPathRooted(path); + // Cannot use Path.IsPathRooted because it returns false under mono when using windows-based paths, e.g. C:\\ + + if (path.IndexOf("://", StringComparison.OrdinalIgnoreCase) != -1 && + !path.StartsWith("file://", StringComparison.OrdinalIgnoreCase)) + { + return false; + } + return true; + + //return Path.IsPathRooted(path); } } } -- cgit v1.2.3