fix: zip on huge folder without permission was wasting a lot of time
Massimo Melina committed
Oct 2, 2023 at 22:41 UTC
12bc964e5383df11d65e790ce413701a46148926
1 file changed
+1
-1
src/vfs.ts
+1
-1
@@ -240,7 +240,7 @@ export async function* walkNode(parent:VfsNode, ctx?: Koa.Context, depth:number=
240
parentsCache.set(name, item)
241
inheritMasks(item, parent, nodeName)
242
if (!ctx || hasPermission(item, 'can_list', ctx)) // check perm before recursion
243
- yield* walkNode(item, ctx, depth - 1, name + '/')
243
+ yield* walkNode(item, ctx, depth - 1, name + '/', requiredPerm)
244
}
245
if (!source)
246
return