MCPcopy Create free account
hub / github.com/vercel/vercel / fileExists

Function fileExists

packages/python/src/entrypoint.ts:79–86  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

77}
78
79async function fileExists(filePath: string): Promise<boolean> {
80 try {
81 const stat = await fs.promises.stat(filePath);
82 return stat.isFile();
83 } catch {
84 return false;
85 }
86}
87
88function getFrameworkDisplayName(framework: string): string {
89 switch (framework) {

Callers 5

checkEntrypointFunction · 0.70
findValidEntrypointFunction · 0.70
detectPythonEntrypointFunction · 0.70

Calls 2

statMethod · 0.80
isFileMethod · 0.45

Tested by

no test coverage detected