diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2025-08-03 17:27:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-03 17:27:17 -0400 |
| commit | 4b6fb6c4bb2478badad068ce18aabe0c2955db48 (patch) | |
| tree | 15f986ee62327cceb8f5c8f009bcf08d10cfaa66 /MediaBrowser.Model/IO/IFileSystem.cs | |
| parent | e7bc86ebb8496615e0b3f73eb4f13ab4c0913dc8 (diff) | |
| parent | db7465e83d9cc07134a0bffad7ed17b1c7b873da (diff) | |
Merge branch 'master' into master
Diffstat (limited to 'MediaBrowser.Model/IO/IFileSystem.cs')
| -rw-r--r-- | MediaBrowser.Model/IO/IFileSystem.cs | 28 |
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> |
