MCPcopy
hub / github.com/PDFMathTranslate/PDFMathTranslate / check_files

Function check_files

pdf2zh/high_level.py:59–67  ·  view source on GitHub ↗
(files: List[str])

Source from the content-addressed store, hash-verified

57
58
59def check_files(files: List[str]) -> List[str]:
60 files = [
61 f for f in files if not f.startswith("http://")
62 ] # exclude online files, http
63 files = [
64 f for f in files if not f.startswith("https://")
65 ] # exclude online files, https
66 missing_files = [file for file in files if not os.path.exists(file)]
67 return missing_files
68
69
70def translate_patch(

Callers 1

translateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected