aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Common
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-09-27 09:32:27 -0500
committerJP Dillingham <jp@dillingham.me>2022-09-27 09:32:27 -0500
commitf29414b34b05ab74ecbfa97c03917fb886dc886e (patch)
tree76be9f776e49efa168cb8c719e3615248a3e9058 /src/slskd/Common
parent9082bc8d2adc633b85027ca232770b49a000944e (diff)
downloadslskd-f29414b34b05ab74ecbfa97c03917fb886dc886e.tar.gz
disambiguate path normalization
Diffstat (limited to 'src/slskd/Common')
-rw-r--r--src/slskd/Common/CommonExtensions.cs5
1 files changed, 4 insertions, 1 deletions
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
/// <summary>
/// Converts the given path to the normalized format (normalizes path separators to backslashes).
/// </summary>
+ /// <remarks>
+ /// Various Soulseek clients (including this one) assume paths to use backslashes, regardless of the host system.
+ /// </remarks>
/// <param name="path">The path to convert.</param>
/// <returns>The converted path.</returns>
- public static string NormalizePath(this string path)
+ public static string NormalizePathForSoulseek(this string path)
{
return path.Replace('/', '\\');
}