lib/packages.js
function cleanFolder(outPath) {
    try {
        var stat = fs.lstatSync(outPath);
        if (stat.isDirectory()) {
            wrench.rmdirSyncRecursive(outPath);
        } else  {
            fs.unlinkSync(outPath);
        }
    } catch (e) {
        if (e.code != "ENOENT") throw e;
    }
}
function cleanFolder(outPath) {
    try {
        var stat = fs.lstatSync(outPath);
        if (stat.isDirectory()) {
            wrench.rmdirSyncRecursive(outPath);
        } else  {
            fs.unlinkSync(outPath);
        }
    } catch (e) {
        if (e.code != "ENOENT") throw e;
    }
}
function cleanFolder ( outPath ) { try { var stat = fs . lstatSync ( outPath ) ; if ( stat . isDirectory ( ) ) { wrench . rmdirSyncRecursive ( outPath ) ; } else { fs . unlinkSync ( outPath ) ; } } catch ( e ) { if ( e . code != "ENOENT" ) throw e ; } }
Remove output if folder or symlink
Remove output if folder or symlink