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

Method exists

Extension/src/Utility/Filesystem/filepath.ts:121–124  ·  view source on GitHub ↗
(name: string | undefined | Promise<string | undefined>, baseFolder?: string)

Source from the content-addressed store, hash-verified

119 }
120
121 static async exists(name: string | undefined | Promise<string | undefined>, baseFolder?: string): Promise<undefined | string> {
122 const [fullName, stats] = await filepath.stats(name, baseFolder);
123 return stats ? fullName : undefined;
124 }
125
126 static async isExecutable(name: string | undefined | Promise<string | undefined>, baseFolder?: string): Promise<undefined | string> {
127 const info = await filepath.info(name, baseFolder);

Callers

nothing calls this directly

Calls 1

statsMethod · 0.80

Tested by

no test coverage detected