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

Function create_output_dir

script/run_paper2poster_cli.py:161–171  ·  view source on GitHub ↗

Create timestamped output directory

(args)

Source from the content-addressed store, hash-verified

159
160
161def create_output_dir(args) -> Path:
162 """Create timestamped output directory"""
163 if args.output_dir:
164 output_dir = Path(args.output_dir)
165 else:
166 project_root = get_project_root()
167 run_id = f"{int(time.time())}-{uuid4().hex[:8]}"
168 output_dir = project_root / "outputs" / "cli" / "paper2poster" / run_id
169
170 output_dir.mkdir(parents=True, exist_ok=True)
171 return output_dir
172
173
174async def run_paper2poster_workflow(args, input_path: str, output_dir: Path):

Callers 1

mainFunction · 0.70

Calls 1

get_project_rootFunction · 0.90

Tested by

no test coverage detected