astro-ghostcms/.pnpm-store/v3/files/53/d93b66ed4a2eca23046e6f2b08f...

13 lines
263 B
Plaintext

'use strict'
const u = require('universalify').fromPromise
const fs = require('../fs')
function pathExists (path) {
return fs.access(path).then(() => true).catch(() => false)
}
module.exports = {
pathExists: u(pathExists),
pathExistsSync: fs.existsSync
}