1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-19 07:27:10 +02:00

FUSE mount: rename under root

fix https://github.com/chrislusf/seaweedfs/issues/1242
This commit is contained in:
Chris Lu 2020-03-22 13:09:16 -07:00
parent 9f2c9b666b
commit 64000f5c45

View file

@ -84,6 +84,9 @@ func NewSeaweedFileSystem(option *Option) *WFS {
}
wfs.root = &Dir{Path: wfs.option.FilerMountRootPath, wfs: wfs}
wfs.getNode(filer2.FullPath(wfs.option.FilerMountRootPath), func() fs.Node {
return wfs.root
})
return wfs
}