MCPcopy Index your code
hub / github.com/dmno-dev/bumpy / listFiles

Function listFiles

packages/bumpy/src/utils/fs.ts:77–85  ·  view source on GitHub ↗
(dir: string, ext?: string)

Source from the content-addressed store, hash-verified

75}
76
77export async function listFiles(dir: string, ext?: string): Promise<string[]> {
78 try {
79 const entries = await readdir(dir);
80 if (ext) return entries.filter((e) => e.endsWith(ext));
81 return entries;
82 } catch {
83 return [];
84 }
85}
86
87export async function removeFile(filePath: string): Promise<void> {
88 await unlink(filePath);

Callers 3

warnChangesetWorkflowsFunction · 0.90
applyReleasePlanFunction · 0.90
readBumpFilesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…