UNPKG

@ycmd/creds

Version:

LSK.js CLI Creds is the easiest way to manage GitHub / Gitlab secrets and credentials

28 lines (26 loc) 691 B
import { __name } from './chunk-U2DZE3DI.js'; import { map } from 'fishbird'; import { readdir } from 'fs/promises'; import { resolve } from 'path'; async function getDirs(dir) { const dirents = await readdir(dir, { withFileTypes: true }); const files = await map(dirents, async (dirent) => { if (!dirent.isDirectory()) return []; return [ { name: dirent.name, dir: resolve(dir), filename: resolve(dir, dirent.name) }, ...await getDirs(resolve(dir, dirent.name)) ]; }); return files.flat(); } __name(getDirs, "getDirs"); export { getDirs }; //# sourceMappingURL=out.js.map //# sourceMappingURL=chunk-KQUY3CBJ.js.map