Files
NapCatQQ/.pnpm-store/v3/files/1d/8b8da9439b323745aded07cf23ecf5c3319750af15e1be95c88faf1698bfca6d22feab50f1c7479f8b2cf6f8540120b9319650f058cb838410bf4f79ff3638
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

24 lines
347 B
Plaintext

'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;
}
};