MCPcopy Create free account
hub / github.com/nodejs/node / isIgnoredByWatchOptions

Function isIgnoredByWatchOptions

test/fixtures/snapshot/typescript.js:6745–6748  ·  view source on GitHub ↗
(pathToCheck, options, useCaseSensitiveFileNames, getCurrentDirectory)

Source from the content-addressed store, hash-verified

6743 };
6744 }
6745 function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames, getCurrentDirectory) {
6746 return ((options === null || options === void 0 ? void 0 : options.excludeDirectories) || (options === null || options === void 0 ? void 0 : options.excludeFiles)) && (ts.matchesExclude(pathToCheck, options === null || options === void 0 ? void 0 : options.excludeFiles, useCaseSensitiveFileNames, getCurrentDirectory()) ||
6747 ts.matchesExclude(pathToCheck, options === null || options === void 0 ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames, getCurrentDirectory()));
6748 }
6749 function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory) {
6750 return function (eventName, relativeFileName) {
6751 // In watchDirectory we only care about adding and removing files (when event name is

Callers 2

isIgnoredPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected