This commit is contained in:
Chris Lu 2019-12-17 14:03:57 -08:00
parent f27a1abf1c
commit ee6952fddd

View file

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