lib/gulp-copy.js
function doesPathExist(pathToVerify) {
    let pathExists = true;

    try {
        fs.accessSync(pathToVerify);
    } catch (error) {
        pathExists = false;
    }

    return pathExists;
}
function doesPathExist(pathToVerify) {
    let pathExists = true;

    try {
        fs.accessSync(pathToVerify);
    } catch (error) {
        pathExists = false;
    }

    return pathExists;
}
function doesPathExist ( pathToVerify ) { let pathExists = true ; try { fs . accessSync ( pathToVerify ) ; } catch ( error ) { pathExists = false ; } return pathExists ; }
Check if the path exists
@param path
@returns {boolean}
Check if the path exists