Skip to content

Commit

Permalink
fix: Merge pull request #158 from pelias/downloader-make-meta-dir
Browse files Browse the repository at this point in the history
Create meta directory before running downloader
  • Loading branch information
orangejulius authored Oct 20, 2016
2 parents 100dbe2 + 16c8d0a commit 875c01d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions download_data.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
var child_process = require('child_process');
var async = require('async');
var fs = require('fs-extra');
var os = require('os');

var bundles = require('./src/bundleList');
var config = require('pelias-config').generate();

//ensure required directory structure exists
fs.ensureDirSync(config.imports.whosonfirst.datapath + '/meta');

// download one bundle for every other CPU (tar and bzip2 can both max out one core)
// (but not more than 4, to keep things from getting too intense)
// lower this number to make the downloader more CPU friendly
Expand Down

0 comments on commit 875c01d

Please sign in to comment.