forked from olcxjas-softworks/LarpixClient
Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
14
node_modules/rimraf/dist/esm/readdir-or-error.js
generated
vendored
Normal file
14
node_modules/rimraf/dist/esm/readdir-or-error.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// returns an array of entries if readdir() works,
|
||||
// or the error that readdir() raised if not.
|
||||
import { promises, readdirSync } from './fs.js';
|
||||
const { readdir } = promises;
|
||||
export const readdirOrError = (path) => readdir(path).catch(er => er);
|
||||
export const readdirOrErrorSync = (path) => {
|
||||
try {
|
||||
return readdirSync(path);
|
||||
}
|
||||
catch (er) {
|
||||
return er;
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=readdir-or-error.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue