fixed tmp dir

This commit is contained in:
Stanislas Jouffroy 2025-05-23 16:32:49 +02:00
parent 52b9729d0a
commit 5a5b936f32

View file

@ -6,7 +6,7 @@ import requests
def download( def download(
url: str, url: str,
destination_folder: Path = Path(tempfile.mkdtemp()), destination_folder: Path = Path(tempfile.gettempdir()),
file_name: str = "file.pdf", file_name: str = "file.pdf",
) -> Path: ) -> Path:
response = requests.get(url) response = requests.get(url)