MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / create_output_dir

Function create_output_dir

script/run_ppt2polish_cli.py:146–156  ·  view source on GitHub ↗

Create timestamped output directory

(args)

Source from the content-addressed store, hash-verified

144
145
146def 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
159def convert_pptx_to_pdf(pptx_path: Path, output_dir: Path) -> Path:

Callers 1

mainFunction · 0.70

Calls 1

get_project_rootFunction · 0.90

Tested by

no test coverage detected