MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / is_pdf

Function is_pdf

autofigure/utils/file_utils.py:123–125  ·  view source on GitHub ↗

Check if a file is a PDF.

(path: Union[str, Path])

Source from the content-addressed store, hash-verified

121
122
123def is_pdf(path: Union[str, Path]) -> bool:
124 """Check if a file is a PDF."""
125 return get_file_extension(path) == "pdf"
126
127
128def is_markdown(path: Union[str, Path]) -> bool:

Callers

nothing calls this directly

Calls 1

get_file_extensionFunction · 0.85

Tested by

no test coverage detected