MCPcopy Create free account
hub / github.com/cloudflare/computer / listFilesAt

Function listFilesAt

packages/computer/src/git/diff.ts:254–262  ·  view source on GitHub ↗
(
  git: IsomorphicGitDiffClient,
  fs: object,
  dir: string,
  ref: string,
)

Source from the content-addressed store, hash-verified

252}
253
254async function listFilesAt(
255 git: IsomorphicGitDiffClient,
256 fs: object,
257 dir: string,
258 ref: string,
259): Promise<string[]> {
260 if (typeof git.listFiles !== "function") return [];
261 return git.listFiles({ fs, dir, ref });
262}
263
264function makePathFilter(paths: string[] | undefined): (p: string) => boolean {
265 if (paths === undefined || paths.length === 0) return () => true;

Callers 1

collectRefToRefFunction · 0.85

Calls 1

listFilesMethod · 0.65

Tested by

no test coverage detected