Add Initial commit

This commit is contained in:
Lev
2021-06-16 17:23:26 -05:00
parent ab56bbf9fc
commit d3d84e81c3
816 changed files with 157084 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
'use strict';
const fs = require('fs');
const {promisify} = require('util');
const pAccess = promisify(fs.access);
module.exports = async path => {
try {
await pAccess(path);
return true;
} catch (_) {
return false;
}
};
module.exports.sync = path => {
try {
fs.accessSync(path);
return true;
} catch (_) {
return false;
}
};