MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / writeFilesInBatches

Function writeFilesInBatches

tooling/scripts/perf-web-runtime.mjs:201–205  ·  view source on GitHub ↗
(files, batchSize = 96)

Source from the content-addressed store, hash-verified

199}
200
201async function writeFilesInBatches(files, batchSize = 96) {
202 for (let index = 0; index < files.length; index += batchSize) {
203 await Promise.all(files.slice(index, index + batchSize).map(([path, body]) => writeFile(path, body)))
204 }
205}
206
207async function seedVault(vaultRoot, count) {
208 const inbox = join(vaultRoot, 'inbox')

Callers 1

seedVaultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected