Skip to content

Commit

Permalink
Make datadir if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
orangejulius committed Oct 4, 2018
1 parent f095989 commit de21d15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/download_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ if (!targetDir) {
logger.info(`Attempting to download selected data files: ${files}`);


fs.mkdirpSync(targetDir);

async.eachLimit(files, 5, downloadStandard.bind(null, targetDir), function() {
logger.info('all done');
});

0 comments on commit de21d15

Please sign in to comment.