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

Method isExecutable

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

Source from the content-addressed store, hash-verified

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`));
18 ok(isFile, new Error(`Path ${filename} is not a file`));
19 ok(isExecutable, new Error(`File ${filename} is not executable`));
20 return fullPath;
21 }
22
23 static isAbsolute(path: string) {
24 ok(isAbsolutePath(path), `Path ${path} is not an absolute path`);

Callers 1

processFactoryFunction · 0.45

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected