MCPcopy Create free account
hub / github.com/krausest/js-framework-benchmark / processDirectories

Function processDirectories

cli/copy.js:74–86  ·  view source on GitHub ↗

* Reads the contents of the root directory and recursively copies the contents of each folder, unless they are excluded.

()

Source from the content-addressed store, hash-verified

72 * Reads the contents of the root directory and recursively copies the contents of each folder, unless they are excluded.
73 */
74function processDirectories() {
75 const directories = fs.readdirSync(".");
76 const nonHiddenDirectories = directories.filter((directory) => !directory.startsWith("."));
77
78 for (const directory of nonHiddenDirectories) {
79 if (fs.statSync(directory).isDirectory() && !rootExclude.includes(directory)) {
80 const dirPath = path.join("dist", directory);
81 console.log(dirPath);
82 fs.mkdirSync(dirPath);
83 copyFolderRecursiveSync(directory, path.join("dist", directory));
84 }
85 }
86}
87
88/**
89 * Creates a dist directory, copies `table.html` from `webdriver-ts` and `index.html` into it,

Callers 1

copyProjectToDistFunction · 0.85

Calls 1

copyFolderRecursiveSyncFunction · 0.85

Tested by

no test coverage detected