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

Function list_removable

scripts/translate.py:302–310  ·  view source on GitHub ↗
(language: str)

Source from the content-addressed store, hash-verified

300
301@app.command()
302def list_removable(language: str) -> list[Path]:
303 removable_paths: list[Path] = []
304 lang_paths = Path(f"docs/{language}").rglob("*.md")
305 for path in lang_paths:
306 en_path = generate_en_path(lang=language, path=path)
307 if not en_path.exists():
308 removable_paths.append(path)
309 print(removable_paths)
310 return removable_paths
311
312
313@app.command()

Callers 2

list_all_removableFunction · 0.85
remove_removableFunction · 0.85

Calls 2

generate_en_pathFunction · 0.85
PathClass · 0.50

Tested by

no test coverage detected