MCPcopy Create free account
hub / github.com/TanStack/cli / findFilesRecursively

Function findFilesRecursively

packages/create/src/file-helpers.ts:135–148  ·  view source on GitHub ↗
(
  path: string,
  files: Record<string, string>,
)

Source from the content-addressed store, hash-verified

133}
134
135export function findFilesRecursively(
136 path: string,
137 files: Record<string, string>,
138) {
139 const dirFiles = readdirSync(path)
140 for (const file of dirFiles) {
141 const filePath = resolve(path, file)
142 if (isDirectory(filePath)) {
143 findFilesRecursively(filePath, files)
144 } else {
145 files[filePath] = readFileHelper(filePath)
146 }
147 }
148}
149
150async function recursivelyGatherFilesHelper(
151 basePath: string,

Callers

nothing calls this directly

Calls 2

isDirectoryFunction · 0.85
readFileHelperFunction · 0.85

Tested by

no test coverage detected