Browse Source

report error if entry not found

pull/1918/head
Chris Lu 4 years ago
parent
commit
c00dd5e62e
  1. 4
      weed/filesys/file.go

4
weed/filesys/file.go

@ -56,6 +56,10 @@ func (file *File) Attr(ctx context.Context, attr *fuse.Attr) (err error) {
}
}
if entry == nil {
return fuse.ENOENT
}
// attr.Inode = file.fullpath().AsInode()
attr.Valid = time.Second
attr.Mode = os.FileMode(entry.Attr.Mode)

Loading…
Cancel
Save