1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.readdir = exports.stat = void 0;
|
4 | const fs = require("fs-extra");
|
5 | async function stat(p) {
|
6 | try {
|
7 | return await fs.stat(p);
|
8 | }
|
9 | catch (e) {
|
10 | // ignore
|
11 | }
|
12 | }
|
13 | exports.stat = stat;
|
14 | async function readdir(dir) {
|
15 | try {
|
16 | return await fs.readdir(dir);
|
17 | }
|
18 | catch (e) {
|
19 | return [];
|
20 | }
|
21 | }
|
22 | exports.readdir = readdir;
|