fixed tmp dir
This commit is contained in:
parent
52b9729d0a
commit
5a5b936f32
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue