diff --git a/scripts/benchmark.js b/scripts/benchmark.js index 06dcb9d73..03348edbe 100755 --- a/scripts/benchmark.js +++ b/scripts/benchmark.js @@ -257,6 +257,8 @@ class AssetsManager { if (DEBUG) console.error("Updating Cache..."); const files = Object.keys(this.assets); + if (!pathExists(this.cacheDir)) fs.mkdirSync(this.cacheDir); + return Promise.all( files .filter(filename => !pathExists(this.filePath(filename)))