MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / under_root

Function under_root

graphify/watch.py:4486–4491  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

4484 warned_no_filter = False
4485
4486 def under_root(path: Path) -> bool:
4487 try:
4488 path.resolve().relative_to(watch_root_for_ignore)
4489 return True
4490 except (OSError, ValueError):
4491 return False
4492
4493 def schedule_one(path: Path) -> None:
4494 nonlocal warned_no_filter

Callers 3

on_any_eventMethod · 0.85
schedule_oneFunction · 0.85
add_treeFunction · 0.85

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected