feat(文件系统): 加强文件系统直通能力
build.yaml / build (push) Successful in 26s

This commit is contained in:
2026-07-02 19:05:08 +08:00
parent 2439762607
commit 1a8532ea8a
5 changed files with 536 additions and 115 deletions
+3 -1
View File
@@ -16,6 +16,7 @@ package fs
import (
"path/filepath"
"strings"
"github.com/winfsp/cgofuse/fuse"
)
@@ -45,5 +46,6 @@ func (s *SymFS) SetHost(host *fuse.FileSystemHost) {
// 入参: path 相对路径
// 返回: string 绝对路径
func (s *SymFS) realPath(path string) string {
return filepath.Join(s.root, path)
path = strings.TrimLeft(path, `/\`)
return filepath.Join(s.root, filepath.FromSlash(path))
}