lib/utils.js
// creates directories synchronously to avoid race conditions with file creation
creates directories synchronously to avoid race conditions with file creation
creates directories synchronously to avoid race conditions with file creation
function createDirectory(dirPath) {
  mkdirp.sync(dirPath, function(err) {
    if (err) console.error(err);
  });
}
function createDirectory ( dirPath ) { mkdirp . sync ( dirPath , function ( err ) { if ( err ) console . error ( err ) ; } ) ; }
creates directories synchronously to avoid race conditions with file creation
creates directories synchronously to avoid race conditions with file creation