aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/IO/IFileSystem.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2025-03-25 15:13:32 +0000
committerJPVenson <github@jpb.email>2025-03-25 15:13:32 +0000
commit7cd059c03305de3b6b5d27e3a97624e8ec24bfbb (patch)
treebda4e1e9eed1cf877855802dd52b06b791fd2547 /MediaBrowser.Model/IO/IFileSystem.cs
parent850f1c79f1319de56a300c1d62565c9b2793b7d8 (diff)
parent480244e1112a96e8097c7574ef2aebb1b26fe8e4 (diff)
Merge remote-tracking branch 'origin/master' into feature/DatabaseRefactor
Diffstat (limited to 'MediaBrowser.Model/IO/IFileSystem.cs')
-rw-r--r--MediaBrowser.Model/IO/IFileSystem.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/MediaBrowser.Model/IO/IFileSystem.cs b/MediaBrowser.Model/IO/IFileSystem.cs
index 229368d00..0ed2e30d5 100644
--- a/MediaBrowser.Model/IO/IFileSystem.cs
+++ b/MediaBrowser.Model/IO/IFileSystem.cs
@@ -157,9 +157,37 @@ namespace MediaBrowser.Model.IO
/// <returns>All found files.</returns>
IEnumerable<FileSystemMetadata> GetFiles(string path, bool recursive = false);
+ /// <summary>
+ /// Gets the files.
+ /// </summary>
+ /// <param name="path">The path in which to search.</param>
+ /// <param name="searchPattern">The search string to match against the names of files. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters, but it doesn't support regular expressions.</param>
+ /// <param name="recursive">If set to <c>true</c> also searches in subdirectories.</param>
+ /// <returns>All found files.</returns>
+ IEnumerable<FileSystemMetadata> GetFiles(string path, string searchPattern, bool recursive = false);
+
+ /// <summary>
+ /// Gets the files.
+ /// </summary>
+ /// <param name="path">The path in which to search.</param>
+ /// <param name="extensions">The file extensions to search for.</param>
+ /// <param name="enableCaseSensitiveExtensions">Enable case-sensitive check for extensions.</param>
+ /// <param name="recursive">If set to <c>true</c> also searches in subdirectories.</param>
+ /// <returns>All found files.</returns>
IEnumerable<FileSystemMetadata> GetFiles(string path, IReadOnlyList<string>? extensions, bool enableCaseSensitiveExtensions, bool recursive);
/// <summary>
+ /// Gets the files.
+ /// </summary>
+ /// <param name="path">The path in which to search.</param>
+ /// <param name="searchPattern">The search string to match against the names of files. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters, but it doesn't support regular expressions.</param>
+ /// <param name="extensions">The file extensions to search for.</param>
+ /// <param name="enableCaseSensitiveExtensions">Enable case-sensitive check for extensions.</param>
+ /// <param name="recursive">If set to <c>true</c> also searches in subdirectories.</param>
+ /// <returns>All found files.</returns>
+ IEnumerable<FileSystemMetadata> GetFiles(string path, string searchPattern, IReadOnlyList<string>? extensions, bool enableCaseSensitiveExtensions, bool recursive);
+
+ /// <summary>
/// Gets the file system entries.
/// </summary>
/// <param name="path">The path.</param>