diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-03-12 17:20:56 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-12 17:20:56 -0600 |
| commit | cbd3222be258b1c1df7422ea6fff4f785da24907 (patch) | |
| tree | 8f2b27c5613f665ac21f8b8b91bda1ac30ff1b0f /src/slskd/Common/SharedFileCache.cs | |
| parent | 05db04ea6e9d1526a8e6799d8f1aacb7e6a4e5e8 (diff) | |
| parent | 8c6cf9da00f15d93a93ebcfb7352b29a16ca88a0 (diff) | |
| download | slskd-cbd3222be258b1c1df7422ea6fff4f785da24907.tar.gz | |
Merge pull request #57 from slskd/paths
Normalize path separators to backslash in search, browse, and directory content responses
Diffstat (limited to 'src/slskd/Common/SharedFileCache.cs')
| -rw-r--r-- | src/slskd/Common/SharedFileCache.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Common/SharedFileCache.cs b/src/slskd/Common/SharedFileCache.cs index 208eab24..77feaa05 100644 --- a/src/slskd/Common/SharedFileCache.cs +++ b/src/slskd/Common/SharedFileCache.cs @@ -66,7 +66,7 @@ namespace slskd CreateTable(); Files = System.IO.Directory.GetFiles(Directory, "*", SearchOption.AllDirectories) - .Select(f => new Soulseek.File(1, f, new FileInfo(f).Length, Path.GetExtension(f))) + .Select(f => new Soulseek.File(1, f.Replace("/", @"\"), new FileInfo(f).Length, Path.GetExtension(f))) .ToDictionary(f => f.Filename, f => f); // potentially optimize with multi-valued insert |
