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

Function checkFileExistsSync

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

Source from the content-addressed store, hash-verified

564}
565
566export function checkFileExistsSync(filePath: string): boolean {
567 try {
568 return fs.statSync(filePath).isFile();
569 } catch {
570 return false;
571 }
572}
573
574export function checkExecutableWithoutExtensionExistsSync(filePath: string): boolean {
575 if (checkFileExistsSync(filePath)) {

Callers 3

getVcpkgRootFunction · 0.85

Calls 1

isFileMethod · 0.45

Tested by

no test coverage detected