From 60d3f475033cef64a8f3153beb910e48529c8e16 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 4 Nov 2014 07:41:12 -0500 Subject: add server management to web client --- .../IO/CommonFileSystem.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (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 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); + } } } -- cgit v1.2.3