tahamajs's picture
download
raw
347 Bytes
'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;
}
};

Xet Storage Details

Size:
347 Bytes
·
Xet hash:
93f1c47ac106d9e12dcda0faebe583f3a4c506f6676ae932d866a984ab09231e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.