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

Function create_output_dir

script/run_image2ppt_cli.py:157–167  ·  view source on GitHub ↗

Create timestamped output directory

(args)

Source from the content-addressed store, hash-verified

155
156
157def create_output_dir(args) -> Path:
158 """Create timestamped output directory"""
159 if args.output_dir:
160 output_dir = Path(args.output_dir)
161 else:
162 project_root = get_project_root()
163 timestamp = int(time.time())
164 output_dir = project_root / "outputs" / "cli" / "image2ppt" / str(timestamp)
165
166 output_dir.mkdir(parents=True, exist_ok=True)
167 return output_dir
168
169
170async def run_image2ppt_workflow(args, input_path: Path, output_dir: Path) -> Paper2PPTResponse:

Callers 1

mainFunction · 0.70

Calls 1

get_project_rootFunction · 0.90

Tested by

no test coverage detected