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

Function addOrDeleteFile

test/fixtures/snapshot/typescript.js:115395–115403  ·  view source on GitHub ↗
(fileName, filePath, eventKind)

Source from the content-addressed store, hash-verified

115393 return fsQueryResult;
115394 }
115395 function addOrDeleteFile(fileName, filePath, eventKind) {
115396 if (eventKind === ts.FileWatcherEventKind.Changed) {
115397 return;
115398 }
115399 var parentResult = getCachedFileSystemEntriesForBaseDir(filePath);
115400 if (parentResult) {
115401 updateFilesOfFileSystemEntry(parentResult, getBaseNameOfFileName(fileName), eventKind === ts.FileWatcherEventKind.Created);
115402 }
115403 }
115404 function updateFilesOfFileSystemEntry(parentResult, baseName, fileExists) {
115405 updateFileSystemEntry(parentResult.files, baseName, fileExists);
115406 }

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…