diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-08-23 02:18:43 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-08-23 02:18:43 -0500 |
| commit | 96420adbda382a91406c71ecfdddd5878bfb8f9d (patch) | |
| tree | f3fd00ebbf8bc3ef7ccef02d0fa27b3ba64594f4 /src | |
| parent | aa3401f33bb0a6e55324f1f0b67c9946a2df86db (diff) | |
| download | slskd-96420adbda382a91406c71ecfdddd5878bfb8f9d.tar.gz | |
rename method for clarity
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Files/API/FilesController.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Files/FileService.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Files/API/FilesController.cs b/src/slskd/Files/API/FilesController.cs index 8a96d83f..5f30f325 100644 --- a/src/slskd/Files/API/FilesController.cs +++ b/src/slskd/Files/API/FilesController.cs @@ -200,7 +200,7 @@ namespace slskd.Files.API try { - var response = await Files.ListContentsAsync( + var response = await Files.ListDirectoryContentsAsync( directory: requestedDir, enumerationOptions: new EnumerationOptions { diff --git a/src/slskd/Files/FileService.cs b/src/slskd/Files/FileService.cs index 6ab2328a..f348e658 100644 --- a/src/slskd/Files/FileService.cs +++ b/src/slskd/Files/FileService.cs @@ -301,7 +301,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> ListContentsAsync(string directory, EnumerationOptions enumerationOptions = null) + public virtual async Task<FilesystemDirectory> ListDirectoryContentsAsync(string directory, EnumerationOptions enumerationOptions) { ArgumentException.ThrowIfNullOrWhiteSpace(directory); |
