MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / checkFileExists

Function checkFileExists

Extension/src/common.ts:520–523  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

518
519/** Test whether a file exists */
520export async function checkFileExists(filePath: string): Promise<boolean> {
521 const stats: fs.Stats | undefined = await fsStat(filePath);
522 return !!stats && stats.isFile();
523}
524
525/** Test whether a file exists */
526export async function checkExecutableWithoutExtensionExists(filePath: string): Promise<boolean> {

Callers 3

getRawJsonFunction · 0.85
allowExecutionFunction · 0.85

Calls 2

fsStatFunction · 0.85
isFileMethod · 0.45

Tested by

no test coverage detected