lib/validate.js
function isRealDirectory(p) {
    var stats;
    try {
        stats = fs.statSync(p);
    } catch (error) {
        // Not a valid path if stat fails.
        return false;
    }
    
    return (stats.isDirectory());
}
function isRealDirectory(p) {
    var stats;
    try {
        stats = fs.statSync(p);
    } catch (error) {
        // Not a valid path if stat fails.
        return false;
    }
    
    return (stats.isDirectory());
}
function isRealDirectory ( p ) { var stats ; try { stats = fs . statSync ( p ) ; } catch ( error ) { // Not a valid path if stat fails. return false ; } return ( stats . isDirectory ( ) ) ; }
Expects that a path points to a real directory.
Expects that a path points to a real directory .