%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/node_modules/next/dist/server/lib/
Upload File :
Create Path :
Current File : /var/www/html/node_modules/next/dist/server/lib/recursive-readdir-sync.js

"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.recursiveReadDirSync = recursiveReadDirSync;
var _fs = _interopRequireDefault(require("fs"));
var _path = require("path");
function _interopRequireDefault(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
function recursiveReadDirSync(dir, arr = [], rootDir = dir) {
    const result = _fs.default.readdirSync(dir);
    result.forEach((part)=>{
        const absolutePath = (0, _path).join(dir, part);
        const pathStat = _fs.default.statSync(absolutePath);
        if (pathStat.isDirectory()) {
            recursiveReadDirSync(absolutePath, arr, rootDir);
            return;
        }
        arr.push(absolutePath.replace(rootDir, ""));
    });
    return arr;
}

//# sourceMappingURL=recursive-readdir-sync.js.map

Zerion Mini Shell 1.0