mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-09 17:51:21 +00:00
Optimize migrations
This commit is contained in:
parent
ea1c1d0468
commit
5882006ee7
5 changed files with 109 additions and 137 deletions
|
|
@ -586,6 +586,12 @@ namespace Emby.Server.Implementations.IO
|
|||
/// <inheritdoc />
|
||||
public virtual IEnumerable<FileSystemMetadata> GetFiles(string path, string searchPattern, IReadOnlyList<string>? extensions, bool enableCaseSensitiveExtensions, bool recursive = false)
|
||||
{
|
||||
if (!Directory.Exists(path))
|
||||
{
|
||||
_logger.LogWarning("Directory does not exist: {Path}", path);
|
||||
return [];
|
||||
}
|
||||
|
||||
var enumerationOptions = GetEnumerationOptions(recursive);
|
||||
|
||||
// On linux and macOS the search pattern is case-sensitive
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue