Browse Source

twaking

pull/1165/head
Chris Lu 5 years ago
parent
commit
ee6952fddd
  1. 4
      weed/filesys/dir.go

4
weed/filesys/dir.go

@ -381,13 +381,13 @@ func (dir *Dir) maybeLoadEntry(ctx context.Context) error {
if dir.entry == nil { if dir.entry == nil {
parentDirPath, name := filer2.FullPath(dir.Path).DirAndName() parentDirPath, name := filer2.FullPath(dir.Path).DirAndName()
entry, err := dir.wfs.maybeLoadEntry(ctx, parentDirPath, name) entry, err := dir.wfs.maybeLoadEntry(ctx, parentDirPath, name)
dir.entry = entry
if err != nil { if err != nil {
return err return err
} }
if dir.entry == nil {
if entry == nil {
return fuse.ENOENT return fuse.ENOENT
} }
dir.entry = entry
} }
return nil return nil
} }

Loading…
Cancel
Save