MCPcopy Create free account
hub / github.com/crisxuan/bestJavaer / looks_like_local_absolute_path

Function looks_like_local_absolute_path

scripts/check_article_quality.py:255–256  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

253
254
255def looks_like_local_absolute_path(path: str) -> bool:
256 return path.startswith(("/Users/", "/home/", "/tmp/", "/var/", "/Volumes/", "/private/"))
257
258
259def local_image_issue(article_path: Path, target: str, *, staged: bool, root: Path) -> str | None:

Callers 1

local_image_issueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected