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

Function rel_link

scripts/generate_english_main_docs.py:105–106  ·  view source on GitHub ↗
(from_dir: Path, to_path: Path)

Source from the content-addressed store, hash-verified

103
104
105def rel_link(from_dir: Path, to_path: Path) -> str:
106 return Path.relative_to(to_path.resolve(), ROOT.resolve()).as_posix() if False else _rel(from_dir, to_path)
107
108
109def _rel(from_dir: Path, to_path: Path) -> str:

Callers 1

fix_linksFunction · 0.85

Calls 1

_relFunction · 0.85

Tested by

no test coverage detected