You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
268 B

const fs = require('fs');
const check = function (path) {
const existsSync = fs.statSync || fs.existsSync || path.existsSync;
let result;
try {
result = existsSync(path);
} catch (e) {
result = false;
}
return result;
};
module.exports = check;