MCPcopy Index your code
hub / github.com/code-pushup/cli / fileExists

Function fileExists

packages/utils/src/lib/file-system.ts:16–23  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

14}
15
16export async function fileExists(filePath: string): Promise<boolean> {
17 try {
18 const stats = await stat(filePath);
19 return stats.isFile();
20 } catch {
21 return false;
22 }
23}
24
25export async function directoryExists(filePath: string): Promise<boolean> {
26 try {

Callers 15

isRecommendedFunction · 0.90
autoloadRcFunction · 0.90
readRunnerResultsFunction · 0.90
readPackageJsonFunction · 0.90
detectConfigVersionFunction · 0.90
findProjectFileFunction · 0.90
isRecommendedFunction · 0.90
resolvePackageManagerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected