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

Function someFileExists

packages/cli/src/utils/fileSystem.ts:23–35  ·  view source on GitHub ↗
(directory: string, filenames: string[])

Source from the content-addressed store, hash-verified

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

Callers 2

isMatchMethod · 0.90
detectNextConfigFileFunction · 0.90

Calls 1

pathExistsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…