EZPPLauncher/fileUtil.js

15 lines
351 B
JavaScript
Raw Permalink Normal View History

2022-10-16 19:13:30 +00:00
const fs = require('fs');
async function existsAsync(filePath) {
return new Promise(function (resolve, _reject) {
fs.stat(filePath, function (err, _stat) {
if (err == null) {
resolve(true)
} else {
resolve(false);
}
})
})
}
module.exports = { existsAsync };