UNPKG

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