Newer
Older
CVSS_3.0_GUI / dist / CVSS_3.0_Calc-1.0.0-linux-x64 / node_modules / nwjs-builder-phoenix / node_modules / fs-extra / lib / path-exists / index.js
root on 7 May 2019 263 bytes Initial commit
  1. 'use strict'
  2. const u = require('universalify').fromPromise
  3. const fs = require('../fs')
  4.  
  5. function pathExists (path) {
  6. return fs.access(path).then(() => true).catch(() => false)
  7. }
  8.  
  9. module.exports = {
  10. pathExists: u(pathExists),
  11. pathExistsSync: fs.existsSync
  12. }
Buy Me A Coffee