We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
filesystem.Root
1 parent 76176e6 commit a5b137eCopy full SHA for a5b137e
internal/filesystem/cgofuse/translate.go
@@ -11,10 +11,7 @@ import (
11
"github.com/winfsp/cgofuse/fuse"
12
)
13
14
-const (
15
- goRoot = "."
16
- errEmptyPath = generic.ConstError("path argument is empty")
17
-)
+const errEmptyPath = generic.ConstError("path argument is empty")
18
19
// fuseToGo converts a FUSE absolute path
20
// to a relative [fs.FS] name.
@@ -30,7 +27,7 @@ func fuseToGo(path string) (string, error) {
30
27
Kind: fserrors.InvalidItem,
31
28
}
32
29
case posixRoot:
33
- return goRoot, nil
+ return filesystem.Root, nil
34
35
36
// TODO: does fuse guarantee slash prefixed paths?
0 commit comments