From 4ce17604ea45118140a9ef719482f2a91489c2e6 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 21 Apr 2025 11:33:21 +0800 Subject: [PATCH] :art: No longer replace \ with / in paths --- kernel/util/path.go | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/util/path.go b/kernel/util/path.go index dab8e05f8..995cd03e6 100644 --- a/kernel/util/path.go +++ b/kernel/util/path.go @@ -39,7 +39,6 @@ var ( ) func TrimSpaceInPath(p string) string { - p = strings.ReplaceAll(p, "\\", "/") parts := strings.Split(p, "/") for i, part := range parts { parts[i] = strings.TrimSpace(part)