MCPcopy Create free account
hub / github.com/fastapi/fastapi / get_all_paths

Function get_all_paths

scripts/translation_fixer.py:56–63  ·  view source on GitHub ↗
(lang: str)

Source from the content-addressed store, hash-verified

54
55
56def get_all_paths(lang: str):
57 res: list[str] = []
58 lang_docs_root = Path("docs") / lang / "docs"
59 for path in iter_all_lang_paths(lang_docs_root):
60 relpath = path.relative_to(lang_docs_root)
61 if not str(relpath).startswith(non_translated_sections):
62 res.append(str(relpath))
63 return res
64
65
66def process_one_page(path: Path) -> bool:

Callers 1

fix_allFunction · 0.85

Calls 2

iter_all_lang_pathsFunction · 0.85
PathClass · 0.50

Tested by

no test coverage detected