From 853c80c53f7195ee88bee39f5592858447fdec9d Mon Sep 17 00:00:00 2001 From: j178 <10510431+j178@users.noreply.github.com> Date: Sun, 10 Dec 2023 00:18:45 +0800 Subject: [PATCH] misc: use forward slash in file path --- utils/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/file.go b/utils/file.go index e28320ad..bd182ad5 100644 --- a/utils/file.go +++ b/utils/file.go @@ -82,5 +82,5 @@ func RelToCwd(path string) string { if err != nil { relPath = path } - return relPath + return filepath.ToSlash(relPath) }