Get a temporary file path. Args: suffix: File suffix (e.g., '.svg') prefix: File prefix Returns: Path to a temporary file
(suffix: str = "", prefix: str = "autofigure_")
| 70 | |
| 71 | |
| 72 | def get_temp_path(suffix: str = "", prefix: str = "autofigure_") -> Path: |
| 73 | """ |
| 74 | Get a temporary file path. |
| 75 | |
| 76 | Args: |
| 77 | suffix: File suffix (e.g., '.svg') |
| 78 | prefix: File prefix |
| 79 | |
| 80 | Returns: |
| 81 | Path to a temporary file |
| 82 | """ |
| 83 | fd, path = tempfile.mkstemp(suffix=suffix, prefix=prefix) |
| 84 | os.close(fd) |
| 85 | return Path(path) |
| 86 | |
| 87 | |
| 88 | def copy_file(src: Union[str, Path], dst: Union[str, Path]) -> bool: |
nothing calls this directly
no outgoing calls
no test coverage detected