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

Function create_output_dir

script/run_paper2ppt_cli.py:198–208  ·  view source on GitHub ↗

Create timestamped output directory

(args)

Source from the content-addressed store, hash-verified

196
197
198def create_output_dir(args) -> Path:
199 """Create timestamped output directory"""
200 if args.output_dir:
201 output_dir = Path(args.output_dir)
202 else:
203 project_root = get_project_root()
204 timestamp = int(time.time())
205 output_dir = project_root / "outputs" / "cli" / "paper2ppt" / str(timestamp)
206
207 output_dir.mkdir(parents=True, exist_ok=True)
208 return output_dir
209
210
211async def run_paper2ppt_workflow(args, input_content: str, input_type: str, output_dir: Path) -> Paper2PPTResponse:

Callers 1

mainFunction · 0.70

Calls 1

get_project_rootFunction · 0.90

Tested by

no test coverage detected