aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Files/FileService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-02 19:04:22 -0500
committerJP Dillingham <jp@dillingham.me>2026-10-02 19:04:22 -0500
commit400108c9a4a88edb6738309e0b83c9299ca36072 (patch)
tree3a296720bd2d1c7bfae11497c6cceb33bce1f4da /src/slskd/Files/FileService.cs
parent2820f93e8967d2b80e9e1c556113655ac4a5474e (diff)
downloadslskd-400108c9a4a88edb6738309e0b83c9299ca36072.tar.gz
make enumeration options default as intended
Diffstat (limited to 'src/slskd/Files/FileService.cs')
-rw-r--r--src/slskd/Files/FileService.cs4
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>()