lib/index.js
function createOutputFolder(next) {
    var defPath         = path.join(getConfig('output.folder'), 'definition-files'),
        defPathCustom   = path.join(getConfig('output.folder'), 'definition-files-custom');

    fs.remove(defPath, function (err) {
        if (err) { next(err); }
        fs.createFile(path.join(defPath, '_Dont_add_or_edit_any_files'), function (err) {
            if (err) { next(err); }
            fs.mkdirs(defPathCustom, function (err) {
                if (err) { next(err); }
                next(null);
            });
        });
    });
}
function createOutputFolder(next) {
    var defPath         = path.join(getConfig('output.folder'), 'definition-files'),
        defPathCustom   = path.join(getConfig('output.folder'), 'definition-files-custom');

    fs.remove(defPath, function (err) {
        if (err) { next(err); }
        fs.createFile(path.join(defPath, '_Dont_add_or_edit_any_files'), function (err) {
            if (err) { next(err); }
            fs.mkdirs(defPathCustom, function (err) {
                if (err) { next(err); }
                next(null);
            });
        });
    });
}
function createOutputFolder ( next ) { var defPath = path . join ( getConfig ( 'output.folder' ) , 'definition-files' ) , defPathCustom = path . join ( getConfig ( 'output.folder' ) , 'definition-files-custom' ) ; fs . remove ( defPath , function ( err ) { if ( err ) { next ( err ) ; } fs . createFile ( path . join ( defPath , '_Dont_add_or_edit_any_files' ) , function ( err ) { if ( err ) { next ( err ) ; } fs . mkdirs ( defPathCustom , function ( err ) { if ( err ) { next ( err ) ; } next ( null ) ; } ) ; } ) ; } ) ; }
Creates 'definition-files' and 'definition-files-custom' directories if they do not exist.
Before creating definition-files it deletes definition-files directory.
@private
@param {function} next - Callback to execute
Creates definition - files and definition - files - custom directories if they do not exist . Before creating definition - files it deletes definition - files directory .