MCPcopy Create free account
hub / github.com/cometchat/cometchat-uikit-angular / getAllFiles

Function getAllFiles

scripts/verify-angular-compatibility.js:118–133  ·  view source on GitHub ↗

* Recursively get all TypeScript and HTML files

(dir, fileList = [])

Source from the content-addressed store, hash-verified

116 * Recursively get all TypeScript and HTML files
117 */
118function getAllFiles(dir, fileList = []) {
119 const files = fs.readdirSync(dir);
120
121 files.forEach((file) => {
122 const filePath = path.join(dir, file);
123 const stat = fs.statSync(filePath);
124
125 if (stat.isDirectory()) {
126 getAllFiles(filePath, fileList);
127 } else if (file.endsWith('.ts') || file.endsWith('.html')) {
128 fileList.push(filePath);
129 }
130 });
131
132 return fileList;
133}
134
135/**
136 * Check a file for version-specific patterns

Callers 1

mainFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected