diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-02 19:04:22 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-10-02 19:04:22 -0500 |
| commit | 400108c9a4a88edb6738309e0b83c9299ca36072 (patch) | |
| tree | 3a296720bd2d1c7bfae11497c6cceb33bce1f4da /src/slskd/Files/FileService.cs | |
| parent | 2820f93e8967d2b80e9e1c556113655ac4a5474e (diff) | |
| download | slskd-400108c9a4a88edb6738309e0b83c9299ca36072.tar.gz | |
make enumeration options default as intended
Diffstat (limited to 'src/slskd/Files/FileService.cs')
| -rw-r--r-- | src/slskd/Files/FileService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Files/FileService.cs b/src/slskd/Files/FileService.cs index 665fe919..584aab08 100644 --- a/src/slskd/Files/FileService.cs +++ b/src/slskd/Files/FileService.cs @@ -320,7 +320,7 @@ namespace slskd.Files /// <exception cref="ArgumentException">Thrown if the specified directory has a relative path.</exception> /// <exception cref="NotFoundException">Thrown if the specified directory does not exist.</exception> /// <exception cref="UnauthorizedException">Thrown if the specified root directory is restricted.</exception> - public virtual async Task<FilesystemDirectory> ListDirectoryContentsAsync(string directory, EnumerationOptions enumerationOptions) + public virtual async Task<FilesystemDirectory> ListDirectoryContentsAsync(string directory, EnumerationOptions enumerationOptions = null) { ArgumentException.ThrowIfNullOrWhiteSpace(directory); @@ -352,7 +352,7 @@ namespace slskd.Files try { - var contents = dir.GetFileSystemInfos("*", enumerationOptions); + var contents = dir.GetFileSystemInfos("*", enumerationOptions ?? new EnumerationOptions()); var files = contents .OfType<FileInfo>() |
