MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / parent

Method parent

Extension/src/Utility/Filesystem/filepath.ts:133–135  ·  view source on GitHub ↗
(name: string | undefined | Promise<string | undefined>)

Source from the content-addressed store, hash-verified

131 static parent(name: Promise<string | undefined>): Promise<string | undefined>;
132 static parent(name: string | undefined): string | undefined;
133 static parent(name: string | undefined | Promise<string | undefined>): string | undefined | Promise<string | undefined> {
134 return is.promise(name) ? name.then(filepath.parent) : name ? normalize(resolve(name, '..')) : undefined;
135 }
136}
137
138export function tmpFile(prefix = 'tmp.', suffix = '.tmp', folder = tmpdir()) {

Callers

nothing calls this directly

Calls 2

promiseMethod · 0.80
thenMethod · 0.45

Tested by

no test coverage detected