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

Function writeFilesInBatches

tooling/scripts/perf-desktop-runtime.mjs:198–202  ·  view source on GitHub ↗
(files, batchSize = 96)

Source from the content-addressed store, hash-verified

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

Callers 1

seedVaultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected