MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / someFileExists

Function someFileExists

packages/cli-v3/src/utilities/fileSystem.ts:28–40  ·  view source on GitHub ↗
(directory: string, filenames: string[])

Source from the content-addressed store, hash-verified

26}
27
28export async function someFileExists(directory: string, filenames: string[]): Promise<boolean> {
29 for (let index = 0; index < filenames.length; index++) {
30 const filename = filenames[index];
31 if (!filename) continue;
32
33 const path = pathModule.join(directory, filename);
34 if (await pathExists(path)) {
35 return true;
36 }
37 }
38
39 return false;
40}
41
42export async function removeFile(path: string) {
43 await fsModule.unlink(path);

Callers

nothing calls this directly

Calls 1

pathExistsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…