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

Function checkDirectoryExistsSync

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

Source from the content-addressed store, hash-verified

597
598/** Test whether a directory exists */
599export function checkDirectoryExistsSync(dirPath: string): boolean {
600 try {
601 return fs.statSync(dirPath).isDirectory();
602 } catch {
603 return false;
604 }
605}
606
607/** Test whether a relative path exists */
608export function checkPathExistsSync(path: string, relativePath: string, _isWindows: boolean, isCompilerPath: boolean): { pathExists: boolean; path: string } {

Callers 2

getVcpkgRootFunction · 0.85
createDirIfNotExistsSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected