MCPcopy
hub / github.com/github/docs / walkFiles

Function walkFiles

script/update-internal-links.js:34–41  ·  view source on GitHub ↗
(pathToWalk)

Source from the content-addressed store, hash-verified

32const __dirname = path.dirname(fileURLToPath(import.meta.url))
33
34const walkFiles = (pathToWalk) => {
35 return walk(path.posix.join(__dirname, '..', pathToWalk), {
36 includeBasePath: true,
37 directories: false,
38 })
39 .filter((file) => file.endsWith('.md') && !file.endsWith('README.md'))
40 .filter((file) => !file.includes('/early-access/')) // ignore EA for now
41}
42
43const allFiles = walkFiles('content').concat(walkFiles('data'))
44

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected