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

Method isFile

Extension/src/Utility/System/assertions.ts:12–14  ·  view source on GitHub ↗
(fileName: string | undefined | Promise<string | undefined>)

Source from the content-addressed store, hash-verified

10// eslint-disable-next-line @typescript-eslint/naming-convention
11export class asserts {
12 static async isFile(fileName: string | undefined | Promise<string | undefined>): Promise<string> {
13 return await filepath.isFile(fileName) || fail(new Error(`File ${fileName} is not a file`));
14 }
15
16 static async isExecutable(filename: string | undefined | Promise<string | undefined>): Promise<string> {
17 const { fullPath, isFile, isExecutable } = await filepath.info(filename) || fail(new Error(`Path ${filename} does not exist`));

Callers 5

getScenarioInfoFunction · 0.45
checkFileExistsFunction · 0.45
checkFileExistsSyncFunction · 0.45
findPowerShellFunction · 0.45
subscribeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected