aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Common/SharedFileCache.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Common/SharedFileCache.cs')
-rw-r--r--src/slskd/Common/SharedFileCache.cs2
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