From f29414b34b05ab74ecbfa97c03917fb886dc886e Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 27 Sep 2022 09:32:27 -0500 Subject: disambiguate path normalization --- src/slskd/Common/CommonExtensions.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/slskd/Common') diff --git a/src/slskd/Common/CommonExtensions.cs b/src/slskd/Common/CommonExtensions.cs index 9b6a3c6c..0998d44d 100644 --- a/src/slskd/Common/CommonExtensions.cs +++ b/src/slskd/Common/CommonExtensions.cs @@ -256,9 +256,12 @@ namespace slskd /// /// Converts the given path to the normalized format (normalizes path separators to backslashes). /// + /// + /// Various Soulseek clients (including this one) assume paths to use backslashes, regardless of the host system. + /// /// The path to convert. /// The converted path. - public static string NormalizePath(this string path) + public static string NormalizePathForSoulseek(this string path) { return path.Replace('/', '\\'); } -- cgit v1.2.3