fsep
Version:
Fsep is a library that promisifies the native node FS operation and brings extras into the mix.
13 lines (10 loc) • 290 B
JavaScript
const Fsep = require('../index');
const Path = require('path');
const path = Path.join(__dirname, 'rw/blue/white/t.txt');
Promise.resolve().then(function () {
return Fsep.exist(path);
}).then(function (result) {
console.log(result);
}).catch(function (error) {
console.log(error);
});