diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-30 10:40:14 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-30 10:40:14 -0400 |
| commit | be7918e5f68f67ed32a50c2d86ee9cae79cf2b93 (patch) | |
| tree | b27b8be23f3771e77c6e3d41b1fec58b682c4891 /MediaBrowser.Controller/IO/IFileSystem.cs | |
| parent | cbd6c47af49145f3136cab9858b87ce98df9071a (diff) | |
fixes #567 - Deprecate native shortcut code
Diffstat (limited to 'MediaBrowser.Controller/IO/IFileSystem.cs')
| -rw-r--r-- | MediaBrowser.Controller/IO/IFileSystem.cs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/IO/IFileSystem.cs b/MediaBrowser.Controller/IO/IFileSystem.cs new file mode 100644 index 000000000..2654c3235 --- /dev/null +++ b/MediaBrowser.Controller/IO/IFileSystem.cs @@ -0,0 +1,45 @@ +using System.IO; + +namespace MediaBrowser.Controller.IO +{ + /// <summary> + /// Interface IFileSystem + /// </summary> + public interface IFileSystem + { + /// <summary> + /// Determines whether the specified filename is shortcut. + /// </summary> + /// <param name="filename">The filename.</param> + /// <returns><c>true</c> if the specified filename is shortcut; otherwise, <c>false</c>.</returns> + bool IsShortcut(string filename); + + /// <summary> + /// Resolves the shortcut. + /// </summary> + /// <param name="filename">The filename.</param> + /// <returns>System.String.</returns> + string ResolveShortcut(string filename); + + /// <summary> + /// Creates the shortcut. + /// </summary> + /// <param name="shortcutPath">The shortcut path.</param> + /// <param name="target">The target.</param> + void CreateShortcut(string shortcutPath, string target); + + /// <summary> + /// Gets the file system info. + /// </summary> + /// <param name="path">The path.</param> + /// <returns>FileSystemInfo.</returns> + FileSystemInfo GetFileSystemInfo(string path); + + /// <summary> + /// Gets the valid filename. + /// </summary> + /// <param name="filename">The filename.</param> + /// <returns>System.String.</returns> + string GetValidFilename(string filename); + } +} |
