alwaysai
Version:
The alwaysAI command-line interface (CLI)
19 lines • 460 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.exists = void 0;
const fs_1 = require("fs");
const util_1 = require("util");
async function exists(path) {
if (!path) {
throw new Error('path is mandatory');
}
try {
await (0, util_1.promisify)(fs_1.access)(path);
return true;
}
catch (ex) {
return false;
}
}
exports.exists = exists;
//# sourceMappingURL=exists.js.map