Skip to content

Commit

Permalink
fix: console error during search
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Nov 1, 2023
1 parent c39957c commit b120411
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ export async function* walkNode(parent:VfsNode, ctx?: Koa.Context, depth:number=
source: join(source, path),
rename: renameUnderPath(parent.rename, path),
}
if (!canSee(item)) continue
if (isFolder)
if (isFolder) // store it even if we can't see it (masks), as its children can be produced by dirStream
parentsCache.set(name, item)
yield item
if (canSee(item))
yield item
}
}
catch(e) {
Expand Down

0 comments on commit b120411

Please sign in to comment.