aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-11-09 23:20:11 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-11-09 23:20:11 -0500
commit95eaf88abd6a979b19f4ee998936ba6f2f4eef4b (patch)
tree566ce2f3c96bc231143df128264c5b9a0047ead7 /MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs
parent1a80362a0f04c3cc571456af64f9de19c0c30d2a (diff)
fixes #943 - Add web client filtering by genres, parental ratings, tags and years
Diffstat (limited to 'MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs')
-rw-r--r--MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs18
1 files changed, 10 insertions, 8 deletions
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);
}
}
}