From c341ff0cd5954084029d63fcbdd34af85055a9e9 Mon Sep 17 00:00:00 2001 From: Sertac Olgunsoylu Date: Tue, 4 Apr 2017 02:14:14 +0300 Subject: [PATCH] Create benchmark_cache dir if it doesn't exist (#489) --- scripts/benchmark.js | 2 ++ 1 file changed, 2 insertions(+) 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)))