src/utils.js
function isPathAccessible (filePath) {
  try {
    fs.accessSync(filePath)
    debug(`Utils: isPathAccessible(): ${filePath} exists`)
    return true
  } catch (err) {
    debug(`Utils: isPathAccessible(): ${filePath} does not exist`)
    return false
  }
}
function isPathAccessible (filePath) {
  try {
    fs.accessSync(filePath)
    debug(`Utils: isPathAccessible(): ${filePath} exists`)
    return true
  } catch (err) {
    debug(`Utils: isPathAccessible(): ${filePath} does not exist`)
    return false
  }
}
function isPathAccessible ( filePath ) { try { fs . accessSync ( filePath ) debug ( ` ${ filePath } ` ) return true } catch ( err ) { debug ( ` ${ filePath } ` ) return false } }
Checks if a path exists

@param filePath - file path to check
@returns {boolean} - does the file path exist?
Checks if a path exists