fix(fuse): ipfs path parsing (#10243)

This commit is contained in:
Henrique Dias 2024-05-06 23:19:43 +02:00 committed by GitHub
parent 65ff619629
commit 2841ec0fcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,7 @@ func (s *Root) Lookup(ctx context.Context, name string) (fs.Node, error) {
return nil, syscall.Errno(syscall.ENOENT)
}
p, err := path.NewPath(name)
p, err := path.NewPath("/ipfs/" + name)
if err != nil {
log.Debugf("fuse failed to parse path: %q: %s", name, err)
return nil, syscall.Errno(syscall.ENOENT)