From b9d17c9bc765a0c59d81db6277300a6860bf8421 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 1 Jan 2014 13:26:31 -0500 Subject: add more methods to file system interface --- MediaBrowser.Common/IO/IFileSystem.cs | 22 ++++++++++++++++++++++ MediaBrowser.Common/Net/INetworkManager.cs | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Common') diff --git a/MediaBrowser.Common/IO/IFileSystem.cs b/MediaBrowser.Common/IO/IFileSystem.cs index 8fba631955..f721e80eac 100644 --- a/MediaBrowser.Common/IO/IFileSystem.cs +++ b/MediaBrowser.Common/IO/IFileSystem.cs @@ -81,5 +81,27 @@ namespace MediaBrowser.Common.IO /// The file1. /// The file2. void SwapFiles(string file1, string file2); + + /// + /// Determines whether [contains sub path] [the specified parent path]. + /// + /// The parent path. + /// The path. + /// true if [contains sub path] [the specified parent path]; otherwise, false. + bool ContainsSubPath(string parentPath, string path); + + /// + /// Determines whether [is root path] [the specified path]. + /// + /// The path. + /// true if [is root path] [the specified path]; otherwise, false. + bool IsRootPath(string path); + + /// + /// Normalizes the path. + /// + /// The path. + /// System.String. + string NormalizePath(string path); } } diff --git a/MediaBrowser.Common/Net/INetworkManager.cs b/MediaBrowser.Common/Net/INetworkManager.cs index 0d644b9096..b5f1c82941 100644 --- a/MediaBrowser.Common/Net/INetworkManager.cs +++ b/MediaBrowser.Common/Net/INetworkManager.cs @@ -1,3 +1,4 @@ +using MediaBrowser.Model.IO; using MediaBrowser.Model.Net; using System.Collections.Generic; using System.Net; @@ -35,7 +36,7 @@ namespace MediaBrowser.Common.Net /// Gets available devices within the domain /// /// PC's in the Domain - IEnumerable GetNetworkDevices(); + IEnumerable GetNetworkDevices(); /// /// Parses the specified endpointstring. -- cgit v1.2.3