MCPcopy Index your code
hub / github.com/codemix/ts-sql / findFiles

Function findFiles

scripts/bundle.js:43–52  ·  view source on GitHub ↗

* @param {string} dir The path to search in.

(dir)

Source from the content-addressed store, hash-verified

41 * @param {string} dir The path to search in.
42 */
43function* findFiles(dir) {
44 for (const name of fs.readdirSync(dir)) {
45 const filename = path.join(dir, name);
46 if (name.endsWith(".ts")) {
47 yield filename;
48 } else if (fs.statSync(filename).isDirectory()) {
49 yield* findFiles(filename);
50 }
51 }
52}
53
54/**
55 * @param {string} filename

Callers 1

bundle.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected