diff options
Diffstat (limited to 'MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs index cc89fad35..131dea36e 100644 --- a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs +++ b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs @@ -390,5 +390,22 @@ namespace MediaBrowser.Common.Implementations.IO { return Path.GetFileNameWithoutExtension(path); } + + public bool IsPathFile(string path) + { + if (string.IsNullOrWhiteSpace(path)) + { + throw new ArgumentNullException("path"); + } + + //if (path.IndexOf("://", StringComparison.OrdinalIgnoreCase) != -1 && + // !path.StartsWith("file://", StringComparison.OrdinalIgnoreCase)) + //{ + // return false; + //} + //return true; + + return Path.IsPathRooted(path); + } } } |
