fix: console error during search

Massimo Melina committed Nov 1, 2023 at 11:43 UTC b120411ff210207e83ab2bd2f4a57dcdf129a45f
1 file changed +3 -3
src/vfs.ts
+3 -3
@@ -272,10 +272,10 @@ export async function* walkNode(parent:VfsNode, ctx?: Koa.Context, depth:number=
272 source: join(source, path),
273 rename: renameUnderPath(parent.rename, path),
274 }
275 - if (!canSee(item)) continue
276 - if (isFolder)
275 + if (isFolder) // store it even if we can't see it (masks), as its children can be produced by dirStream
276 parentsCache.set(name, item)
278 - yield item
277 + if (canSee(item))
278 + yield item
279 }
280 }
281 catch(e) {