Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: No longer replace \ with / in paths

Daniel4ce17604ea45
diff --git a/kernel/util/path.go b/kernel/util/path.go
index dab8e05f8d..995cd03e69 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)