← Về thư mục
skills/markitdown/scripts/batch_convert.py
- ConversionRecord · class · L48-L56 — class ConversionRecord
- normalize_extensions · function · L59-L73 — def normalize_extensions(values: Iterable[str]) -> tuple[str, ...]
- discover_files · function · L76-L91 — def discover_files( input_dir: Path, extensions: tuple[str, ...], recursive: bool, ) -> list[Path]
- output_path_for · function · L94-L97 — def output_path_for(source: Path, input_dir: Path, output_dir: Path) -> Path
- atomic_write_text · function · L100-L118 — def atomic_write_text(path: Path, content: str) -> None
- convert_one · function · L121-L185 — def convert_one( converter: MarkItDown, source: Path, input_dir: Path, output_dir: Path, *, overwrite: bool, allow_empty: bool, max_bytes: int, ) -> ConversionRecord
- write_manifest · function · L188-L206 — def write_manifest( manifest_path: Path, *, input_dir: Path, output_dir: Path, records: list[ConversionRecord], ) -> None
- build_parser · function · L209-L270 — def build_parser() -> argparse.ArgumentParser
- main · function · L273-L350 — def main() -> int