src/index.js
function makeFolder(path, cb) {
  if (cb) {
    fs.mkdir(path, function (err) {
      if (err && err.code != 'EEXIST') {
        throw err;
      }
      cb();
    });
  }
}
function makeFolder(path, cb) {
  if (cb) {
    fs.mkdir(path, function (err) {
      if (err && err.code != 'EEXIST') {
        throw err;
      }
      cb();
    });
  }
}
function makeFolder ( path , cb ) { if ( cb ) { fs . mkdir ( path , function ( err ) { if ( err && err . code != 'EEXIST' ) { throw err ; } cb ( ) ; } ) ; } }
Create a folder, throwing an error only if the error is not that the folder already exists. Effectively creates if not found.
Create a folder throwing an error only if the error is not that the folder already exists . Effectively creates if not found .