MCPcopy Create free account
hub / github.com/firebase/firebase-tools / listFiles

Function listFiles

src/fsutils.ts:33–42  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

31}
32
33export function listFiles(path: string): string[] {
34 try {
35 return readdirSync(path);
36 } catch (e: unknown) {
37 if ((e as NodeJS.ErrnoException).code === "ENOENT") {
38 throw new FirebaseError(`Directory not found: ${path}`);
39 }
40 throw e;
41 }
42}
43
44// Move all files and directories inside srcDir to destDir
45export function moveAll(srcDir: string, destDir: string) {

Callers 4

fsutils.spec.tsFile · 0.90
askQuestionsFunction · 0.90
parseTestFilesRecursiveFunction · 0.90
moveAllFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…