lib/fileTools.js
function createDirIfIsNotDefined(dirPath, dirName, cb) {
    if (!fs.existsSync(dirPath + '/' + dirName)){
        fs.mkdirSync(dirPath + '/' + dirName);
        console.info(cliStyles.cyan + '\tcreate' + cliStyles.reset + ': ' + dirPath + '/' + dirName);
    }

    cb();
}
function createDirIfIsNotDefined(dirPath, dirName, cb) {
    if (!fs.existsSync(dirPath + '/' + dirName)){
        fs.mkdirSync(dirPath + '/' + dirName);
        console.info(cliStyles.cyan + '\tcreate' + cliStyles.reset + ': ' + dirPath + '/' + dirName);
    }

    cb();
}
function createDirIfIsNotDefined ( dirPath , dirName , cb ) { if ( ! fs . existsSync ( dirPath + '/' + dirName ) ) { fs . mkdirSync ( dirPath + '/' + dirName ) ; console . info ( cliStyles . cyan + '\tcreate' + cliStyles . reset + ': ' + dirPath + '/' + dirName ) ; } cb ( ) ; }
Create a directory if not defined
@param {string} dirPath directory path parent
@param {string} dirName directory name to find
@param {function} cb callback
Create a directory if not defined