initial commit

This commit is contained in:
2026-03-22 03:21:45 +02:00
commit 897fea9f4e
15431 changed files with 2548840 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
'use strict';
var fs = require('fs')
module.exports = function (pth, cb) {
var fn = typeof fs.access === 'function' ? fs.access : fs.stat;
fn(pth, function (err) {
cb(null, !err);
});
};
module.exports.sync = function (pth) {
var fn = typeof fs.accessSync === 'function' ? fs.accessSync : fs.statSync;
try {
fn(pth);
return true;
} catch (err) {
return false;
}
};