Create timestamped output directory
(args)
| 144 | |
| 145 | |
| 146 | def create_output_dir(args) -> Path: |
| 147 | """Create timestamped output directory""" |
| 148 | if args.output_dir: |
| 149 | output_dir = Path(args.output_dir) |
| 150 | else: |
| 151 | project_root = get_project_root() |
| 152 | timestamp = int(time.time()) |
| 153 | output_dir = project_root / "outputs" / "cli" / "ppt2polish" / str(timestamp) |
| 154 | |
| 155 | output_dir.mkdir(parents=True, exist_ok=True) |
| 156 | return output_dir |
| 157 | |
| 158 | |
| 159 | def convert_pptx_to_pdf(pptx_path: Path, output_dir: Path) -> Path: |
no test coverage detected