From ee6952fddd02c8a88054f1fa9d8673604f223205 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 17 Dec 2019 14:03:57 -0800 Subject: [PATCH] twaking --- weed/filesys/dir.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index ba870d73f..d5c3cd85f 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -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 }