MCPcopy Create free account
hub / github.com/Snapchat/Valdi / fileExists

Function fileExists

npm_modules/cli/src/utils/fileUtils.ts:67–69  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

65}
66
67export function fileExists(filePath: string): boolean {
68 return fs.existsSync(filePath);
69}
70
71export function getUserConfig(): Constants.UserConfig {
72 let resolvedPath: string | undefined;

Callers 5

maybeSetupEslintFunction · 0.90
getModuleNameFunction · 0.90
isAlreadyInitializedFunction · 0.90
initializeConfigFilesFunction · 0.90
constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected