diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index ef31a9258..14c851f88 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -97,6 +97,7 @@ func NewSeaweedFileSystem(option *Option) *WFS { }) entry, _ := filer_pb.GetEntry(wfs, util.FullPath(wfs.option.FilerMountRootPath)) + wfs.root = &Dir{name: wfs.option.FilerMountRootPath, wfs: wfs, entry: entry} wfs.fsNodeCache = newFsCache(wfs.root)