Run Readdir during Lookup if necessary

This commit is contained in:
Yannick Ulrich 2023-02-26 13:15:09 +00:00
parent 5fa49adee4
commit 4389609500

View File

@ -195,6 +195,10 @@ func (n *ITNode) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*
case 2:
// FS object
if len(n.lst) == 0 {
n.Readdir(ctx)
}
for _, file := range n.lst {
if file.path != n.path + "/" + name {
continue;