tasks/tsdlocal.js
function ensureFolderExists(file) {
    var folderName = path.dirname(file);
    if (fs.existsSync(folderName)) {
        return;
    }
    try {
        mkdirp.sync(folderName);
    }
    catch (e) {
        console.log(colors.red("Unable to create parent folders for: " + file), e);
    }
}
function ensureFolderExists(file) {
    var folderName = path.dirname(file);
    if (fs.existsSync(folderName)) {
        return;
    }
    try {
        mkdirp.sync(folderName);
    }
    catch (e) {
        console.log(colors.red("Unable to create parent folders for: " + file), e);
    }
}
function ensureFolderExists ( file ) { var folderName = path . dirname ( file ) ; if ( fs . existsSync ( folderName ) ) { return ; } try { mkdirp . sync ( folderName ) ; } catch ( e ) { console . log ( colors . red ( "Unable to create parent folders for: " + file ) , e ) ; } }
Ensures the parent folders for the given file name exists.
Ensures the parent folders for the given file name exists .