From 8c6cf9da00f15d93a93ebcfb7352b29a16ca88a0 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 12 Mar 2021 09:17:17 -0600 Subject: normalize path separator to backslash --- src/slskd/Common/SharedFileCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slskd/Common/SharedFileCache.cs') 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 -- cgit v1.2.3