examples/util.js
function existsSync (path) {
  try {
    Fs.accessSync(Path.resolve(path), Fs.F_OK)
    return true
  } catch (err) {
    return false
  }
}
function existsSync (path) {
  try {
    Fs.accessSync(Path.resolve(path), Fs.F_OK)
    return true
  } catch (err) {
    return false
  }
}
function existsSync ( path ) { try { Fs . accessSync ( Path . resolve ( path ) , Fs . F_OK ) return true } catch ( err ) { return false } }
Check the existence of a file or folder.

@param {String} path Path of the file or folder.

@return {Boolean} True if exists. Otherwise false.
Check the existence of a file or folder .