aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-11-04 07:41:12 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-11-04 07:41:12 -0500
commit60d3f475033cef64a8f3153beb910e48529c8e16 (patch)
tree7774f0c55cebc17f459965e03094d05e88f465f2 /MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs
parent7ca1cd8795c465953ddb4560ce62fe6efba9f9d3 (diff)
add server management to web client
Diffstat (limited to 'MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs')
-rw-r--r--MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs17
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);
+ }
}
}