aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/weedfs_dir_lookup.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/mount/weedfs_dir_lookup.go')
-rw-r--r--weed/mount/weedfs_dir_lookup.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/mount/weedfs_dir_lookup.go b/weed/mount/weedfs_dir_lookup.go
index 852e08444..4eceb5ce4 100644
--- a/weed/mount/weedfs_dir_lookup.go
+++ b/weed/mount/weedfs_dir_lookup.go
@@ -20,7 +20,10 @@ func (wfs *WFS) Lookup(cancel <-chan struct{}, header *fuse.InHeader, name strin
return s
}
- dirPath := wfs.inodeToPath.GetPath(header.NodeId)
+ dirPath, code := wfs.inodeToPath.GetPath(header.NodeId)
+ if code != fuse.OK {
+ return
+ }
fullFilePath := dirPath.Child(name)