lib/forest.js
function (path) {
        return new Promise((resolve, reject) => {
            fs.access(path, fs.constants.F_OK, (err) => {
                if (err === null) {
                    resolve(true);
                }
                else if (err.code === 'ENOENT') {
                    resolve(false);
                }
                else {
                    reject(err);
                }
            });
        });
    }
function (path) {
        return new Promise((resolve, reject) => {
            fs.access(path, fs.constants.F_OK, (err) => {
                if (err === null) {
                    resolve(true);
                }
                else if (err.code === 'ENOENT') {
                    resolve(false);
                }
                else {
                    reject(err);
                }
            });
        });
    }
function ( path ) { return new Promise ( ( resolve , reject ) => { fs . access ( path , fs . constants . F_OK , ( err ) => { if ( err === null ) { resolve ( true ) ; } else if ( err . code === 'ENOENT' ) { resolve ( false ) ; } else { reject ( err ) ; } } ) ; } ) ; }
Does `path` exist on the filesystem?
Does path exist on the filesystem?