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

Function pathExists

packages/cli/src/utils/fileSystem.ts:13–21  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

11}
12
13export async function pathExists(path: string): Promise<boolean> {
14 try {
15 await fsModule.access(path);
16
17 return true;
18 } catch (err) {
19 return false;
20 }
21}
22
23export async function someFileExists(directory: string, filenames: string[]): Promise<boolean> {
24 for (let index = 0; index < filenames.length; index++) {

Callers 15

isRootGitRepoFunction · 0.90
readEnvFilesWithBackupsFunction · 0.90
getPathAliasFunction · 0.90
getEnvFilenameFunction · 0.90
setEnvironmentVariableFunction · 0.90
createFileFromTemplateFunction · 0.90
createIntegrationCommandFunction · 0.90
findGitPathFunction · 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…