Skip to content

Commit

Permalink
Create benchmark_cache dir if it doesn't exist (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirtybit authored and boopathi committed Apr 3, 2017
1 parent f2e57e1 commit c341ff0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit c341ff0

Please # to comment.