source: trip-planner-front/node_modules/fs-extra/lib/path-exists/index.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 263 bytes
Line 
1'use strict'
2const u = require('universalify').fromPromise
3const fs = require('../fs')
4
5function pathExists (path) {
6 return fs.access(path).then(() => true).catch(() => false)
7}
8
9module.exports = {
10 pathExists: u(pathExists),
11 pathExistsSync: fs.existsSync
12}
Note: See TracBrowser for help on using the repository browser.