MCPcopy
hub / github.com/github/docs / throughDirectory

Function throughDirectory

src/rest/scripts/test-open-api-schema.js:139–154  ·  view source on GitHub ↗
(directory)

Source from the content-addressed store, hash-verified

137}
138
139function throughDirectory(directory) {
140 fs.readdirSync(directory).forEach((file) => {
141 const absolute = path.join(directory, file)
142 if (fs.statSync(absolute).isDirectory()) {
143 return throughDirectory(absolute)
144 } else if (
145 !directory.includes('rest/guides') &&
146 !directory.includes('rest/overview') &&
147 !file.includes('index.md') &&
148 !file.includes('quickstart.md') &&
149 !file.includes('README.md')
150 ) {
151 return contentFiles.push(absolute)
152 }
153 })
154}
155
156function difference(obj1, obj2) {
157 const diff = Object.keys(obj1).reduce((result, key) => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected