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

Function isValidDirectory

packages/server/reference-watch.ts:38–44  ·  view source on GitHub ↗
(dirPath: string)

Source from the content-addressed store, hash-verified

36}
37
38function isValidDirectory(dirPath: string): boolean {
39 try {
40 return existsSync(dirPath) && statSync(dirPath).isDirectory();
41 } catch {
42 return false;
43 }
44}
45
46function broadcast(entry: WatchEntry, reason: FileBrowserChangeEvent["reason"]): void {
47 for (const [subscriber, clientDirPath] of entry.subscribers) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected