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

Method isFolder

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

Source from the content-addressed store, hash-verified

114 }
115
116 static async isFolder(name: string | undefined | Promise<string | undefined>, baseFolder?: string): Promise<undefined | string> {
117 const [fullName, stats] = await filepath.stats(name, baseFolder);
118 return stats?.isDirectory() ? fullName : undefined;
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);

Callers 2

getScenarioInfoFunction · 0.80
filterToFoldersFunction · 0.80

Calls 1

statsMethod · 0.80

Tested by

no test coverage detected