diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-05-09 19:02:24 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-05-09 19:02:24 -0500 |
| commit | 6d07d6ffd9ac33a597da5f25e927b7f857469cad (patch) | |
| tree | 2dd05a1d5f37605d37fc047e2060e903666c91c0 /src | |
| parent | c00f611d37342dab1d0c0c5f5cd3264b2c8d0616 (diff) | |
| download | slskd-6d07d6ffd9ac33a597da5f25e927b7f857469cad.tar.gz | |
add note about path usage in browseasync
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Shares/ShareService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Shares/ShareService.cs b/src/slskd/Shares/ShareService.cs index 7364d351..054561bf 100644 --- a/src/slskd/Shares/ShareService.cs +++ b/src/slskd/Shares/ShareService.cs @@ -190,7 +190,7 @@ namespace slskd.Shares var files = repositories.SelectMany(r => r.ListFiles( parentDirectory: prefix, - includeFullPath: true)); // TODO: figure out how to eliminate this and work with masked directories only + includeFullPath: true)); // includes the full *masked* filename; directory and file name and extension. not the local filename. var groups = files .GroupBy(file => file.Filename.GetNormalizedDirectoryName()) @@ -282,7 +282,7 @@ namespace slskd.Shares /// <returns>The contents of the directory.</returns> public Task<Directory> ListDirectoryAsync(string directory) { - var files = AllRepositories.SelectMany(r => r.ListFiles(directory)); + var files = AllRepositories.SelectMany(r => r.ListFiles(directory, includeFullPath: false)); return Task.FromResult(new Directory(directory, files)); } |
