@samitouri / QOSami-HFS / commits / c9ab1a0e

fix: you could get wrong results using "search" if a folder X was added in the VFS under Y, and Y had a disk source with a subfolder with the same name of X

Massimo Melina committed Dec 31, 2025 at 12:36 UTC c9ab1a0e8e7069491619ddacc530183e5cd1ffbc
1 file changed +1 -1
src/vfs.ts
+1 -1
@@ -320,7 +320,7 @@ export async function* walkNode(parent: VfsNode, {
320 if (started) return // for simplicity, we care about starting, and never suspend
321 started = true
322 const { source } = parent
323 - const taken = prefixPath ? undefined : new Set()
323 + const taken = new Set()
324 const maskApplier = parentMaskApplier(parent)
325 const visitLater: any = []
326 const childrenWorking = parent.children?.length && Promise.all(parent.children.map(async child => {