MCPcopy Index your code
hub / github.com/codeflash-ai/codeflash / get_run_tmp_file

Function get_run_tmp_file

codeflash/code_utils/code_utils.py:80–83  ·  view source on GitHub ↗
(file_path: Path)

Source from the content-addressed store, hash-verified

78
79
80def get_run_tmp_file(file_path: Path) -> Path:
81 if not hasattr(get_run_tmp_file, "tmpdir"):
82 get_run_tmp_file.tmpdir = TemporaryDirectory(prefix="codeflash_")
83 return Path(get_run_tmp_file.tmpdir.name) / file_path
84
85
86def path_belongs_to_site_packages(file_path: Path) -> bool:

Calls

no outgoing calls