MCPcopy
hub / github.com/QwikDev/qwik / getFiles

Function getFiles

scripts/validate-build.ts:113–129  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

111
112 const allFiles: string[] = [];
113 function getFiles(dir: string) {
114 readdirSync(dir)
115 .map((f) => join(dir, f))
116 .forEach((filePath) => {
117 const s = statSync(filePath);
118 if (s.isDirectory()) {
119 const dirName = basename(filePath);
120 if (dirName !== 'starters' && dirName !== 'templates') {
121 getFiles(filePath);
122 }
123 } else if (s.isFile()) {
124 allFiles.push(filePath);
125 } else {
126 errors.push(`Unexpected: ${filePath}`);
127 }
128 });
129 }
130 getFiles(config.distQwikPkgDir);
131 const unexpectedFiles = allFiles.filter((f) => !expectedFiles.includes(f));
132

Callers 1

validateBuildFunction · 0.70

Calls 2

joinFunction · 0.85
basenameFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…