aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/IO/IFileSystem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/IO/IFileSystem.cs')
-rw-r--r--MediaBrowser.Model/IO/IFileSystem.cs32
1 files changed, 5 insertions, 27 deletions
diff --git a/MediaBrowser.Model/IO/IFileSystem.cs b/MediaBrowser.Model/IO/IFileSystem.cs
index f90119cf3..6773acbfa 100644
--- a/MediaBrowser.Model/IO/IFileSystem.cs
+++ b/MediaBrowser.Model/IO/IFileSystem.cs
@@ -191,11 +191,10 @@ namespace MediaBrowser.Model.IO
/// <summary>
/// Gets the files.
/// </summary>
- /// <param name="path">The path.</param>
- /// <param name="recursive">if set to <c>true</c> [recursive].</param>
- /// <returns>IEnumerable&lt;FileInfo&gt;.</returns>
IEnumerable<FileSystemMetadata> GetFiles(string path, bool recursive = false);
+ IEnumerable<FileSystemMetadata> GetFiles(string path, string [] extensions, bool enableCaseSensitiveExtensions, bool recursive);
+
/// <summary>
/// Gets the file system entries.
/// </summary>
@@ -299,6 +298,7 @@ namespace MediaBrowser.Model.IO
/// <param name="recursive">if set to <c>true</c> [recursive].</param>
/// <returns>IEnumerable&lt;System.String&gt;.</returns>
IEnumerable<string> GetFilePaths(string path, bool recursive = false);
+ IEnumerable<string> GetFilePaths(string path, string[] extensions, bool enableCaseSensitiveExtensions, bool recursive);
/// <summary>
/// Gets the file system entry paths.
@@ -312,7 +312,6 @@ namespace MediaBrowser.Model.IO
void SetReadOnly(string path, bool isHidden);
char DirectorySeparatorChar { get; }
- char PathSeparator { get; }
string GetFullPath(string path);
@@ -353,24 +352,7 @@ namespace MediaBrowser.Model.IO
// permission is required. If the file is opened with FileAccess.ReadWrite, both
// System.Security.Permissions.FileIOPermissionAccess.Read and System.Security.Permissions.FileIOPermissionAccess.Write
// permissions are required.
- OpenOrCreate = 4,
- //
- // Summary:
- // Specifies that the operating system should open an existing file. When the file
- // is opened, it should be truncated so that its size is zero bytes. This requires
- // System.Security.Permissions.FileIOPermissionAccess.Write permission. Attempts
- // to read from a file opened with FileMode.Truncate cause an System.ArgumentException
- // exception.
- Truncate = 5,
- //
- // Summary:
- // Opens the file if it exists and seeks to the end of the file, or creates a new
- // file. This requires System.Security.Permissions.FileIOPermissionAccess.Append
- // permission. FileMode.Append can be used only in conjunction with FileAccess.Write.
- // Trying to seek to a position before the end of the file throws an System.IO.IOException
- // exception, and any attempt to read fails and throws a System.NotSupportedException
- // exception.
- Append = 6
+ OpenOrCreate = 4
}
public enum FileAccessMode
@@ -384,11 +366,7 @@ namespace MediaBrowser.Model.IO
// Summary:
// Write access to the file. Data can be written to the file. Combine with Read
// for read/write access.
- Write = 2,
- //
- // Summary:
- // Read and write access to the file. Data can be written to and read from the file.
- ReadWrite = 3
+ Write = 2
}
public enum FileShareMode