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