MCPcopy Create free account
hub / github.com/backnotprop/plannotator / isFileBrowserWatchIgnoredPath

Function isFileBrowserWatchIgnoredPath

packages/server/reference-watch.ts:32–36  ·  view source on GitHub ↗
(path: string, root: string)

Source from the content-addressed store, hash-verified

30}
31
32export function isFileBrowserWatchIgnoredPath(path: string, root: string): boolean {
33 const rel = relative(root, path).replace(/\\/g, "/");
34 if (!rel || rel.startsWith("..") || isAbsolute(rel)) return false;
35 return isFileBrowserExcludedPath(rel);
36}
37
38function isValidDirectory(dirPath: string): boolean {
39 try {

Callers 2

ensureWatcherFunction · 0.70

Calls 2

replaceMethod · 0.80

Tested by

no test coverage detected