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

Function checkDirectoryExists

Extension/src/common.ts:551–554  ·  view source on GitHub ↗
(dirPath: string)

Source from the content-addressed store, hash-verified

549
550/** Test whether a directory exists */
551export async function checkDirectoryExists(dirPath: string): Promise<boolean> {
552 const stats: fs.Stats | undefined = await fsStat(dirPath);
553 return !!stats && stats.isDirectory();
554}
555
556export function createDirIfNotExistsSync(filePath: string | undefined): void {
557 if (!filePath) {

Callers

nothing calls this directly

Calls 1

fsStatFunction · 0.85

Tested by

no test coverage detected