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

Function find_output_artifacts

script/cli_env.py:74–86  ·  view source on GitHub ↗
(base_dir: Path, patterns: Iterable[str])

Source from the content-addressed store, hash-verified

72
73
74def find_output_artifacts(base_dir: Path, patterns: Iterable[str]) -> list[Path]:
75 found: list[Path] = []
76 for pattern in patterns:
77 found.extend(sorted(base_dir.rglob(pattern)))
78 seen: set[str] = set()
79 unique: list[Path] = []
80 for path in found:
81 resolved = str(path.resolve())
82 if resolved in seen:
83 continue
84 seen.add(resolved)
85 unique.append(path.resolve())
86 return unique

Callers 8

run_paper2video_workflowFunction · 0.90
_run_generateFunction · 0.90
run_ppt2polish_workflowFunction · 0.90
run_paper2ppt_workflowFunction · 0.90
run_pdf2ppt_workflowFunction · 0.90
run_image2ppt_workflowFunction · 0.90

Calls 1

addMethod · 0.80

Tested by

no test coverage detected