Buckets:
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.readdirOrErrorSync = exports.readdirOrError = void 0; | |
| // returns an array of entries if readdir() works, | |
| // or the error that readdir() raised if not. | |
| const fs_js_1 = require("./fs.js"); | |
| const { readdir } = fs_js_1.promises; | |
| const readdirOrError = (path) => readdir(path).catch(er => er); | |
| exports.readdirOrError = readdirOrError; | |
| const readdirOrErrorSync = (path) => { | |
| try { | |
| return (0, fs_js_1.readdirSync)(path); | |
| } | |
| catch (er) { | |
| return er; | |
| } | |
| }; | |
| exports.readdirOrErrorSync = readdirOrErrorSync; | |
| //# sourceMappingURL=readdir-or-error.js.map |
Xet Storage Details
- Size:
- 655 Bytes
- Xet hash:
- f7b96880771c066c47a31f02392f6aa745be3368eb7933114f6e5201e3afd1eb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.