forked from Elara6331/itd
Run Readdir during Lookup if necessary
This commit is contained in:
parent
5fa49adee4
commit
4389609500
4
fuse.go
4
fuse.go
@ -195,6 +195,10 @@ func (n *ITNode) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*
|
|||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
// FS object
|
// FS object
|
||||||
|
if len(n.lst) == 0 {
|
||||||
|
n.Readdir(ctx)
|
||||||
|
}
|
||||||
|
|
||||||
for _, file := range n.lst {
|
for _, file := range n.lst {
|
||||||
if file.path != n.path + "/" + name {
|
if file.path != n.path + "/" + name {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user