MCPcopy Index your code
hub / github.com/nodejs/node / createDirectory

Function createDirectory

test/fixtures/snapshot/typescript.js:115311–115319  ·  view source on GitHub ↗
(dirPath)

Source from the content-addressed store, hash-verified

115309 return cachedReadDirectoryResult.has(ts.ensureTrailingDirectorySeparator(path)) || host.directoryExists(dirPath);
115310 }
115311 function createDirectory(dirPath) {
115312 var path = toPath(dirPath);
115313 var result = getCachedFileSystemEntriesForBaseDir(path);
115314 var baseFileName = getBaseNameOfFileName(dirPath);
115315 if (result) {
115316 updateFileSystemEntry(result.directories, baseFileName, /*isValid*/ true);
115317 }
115318 host.createDirectory(dirPath);
115319 }
115320 function getDirectories(rootDir) {
115321 var rootDirPath = toPath(rootDir);
115322 var result = tryReadDirectory(rootDir, rootDirPath);

Callers 1

ensureDirectoriesExistFunction · 0.85

Calls 4

toPathFunction · 0.85
getBaseNameOfFileNameFunction · 0.85
updateFileSystemEntryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…