UNPKG

forgescript

Version:

ForgeScript is a comprehensive package that empowers you to effortlessly interact with Discord's API. It ensures scripting remains easy to learn and consistently effective.

20 lines 609 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fs_1 = require("fs"); const path_1 = require("path"); function recursiveReaddirSync(path) { const arr = new Array(); for (const file of (0, fs_1.readdirSync)(path)) { const p = (0, path_1.join)(path, file); const stats = (0, fs_1.lstatSync)(p); if (stats.isDirectory()) { arr.push(...recursiveReaddirSync(p)); } else { arr.push(p); } } return arr; } exports.default = recursiveReaddirSync; //# sourceMappingURL=recursiveReaddirSync.js.map