commit f72b34e3ac711c2308aa5b7be865b4c42b3db324
parent f46a027f178c3d0a2f5a56c789e912c439bf25c7
Author: Matsuda Kenji <info@mtkn.jp>
Date: Thu, 19 Oct 2023 10:32:15 +0900
change filepath to path. \npathname in 9P is OS-independent
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test_fs.go b/test_fs.go
@@ -5,7 +5,7 @@ import (
"fmt"
"io/fs"
"strings"
- "path/filepath"
+ "path"
)
type testFile struct {
@@ -93,10 +93,10 @@ L:
return cwd, nil
}
-func clean9path(path string) string {
+func clean9path(name string) string {
// TODO: eliminate leading ".."
- path = filepath.Clean(path)
- return path
+ name = path.Clean(name)
+ return name
}
func split9path(path string) []string {