mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-25 18:33:44 +03:00
Create parent directories too in artifacts download
This commit is contained in:
parent
217f4120ca
commit
846ae52ab2
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
"""Download packages from github actions artifacts
|
||||
"""Download packages from appveyor artifacts
|
||||
"""
|
||||
|
||||
import os
|
||||
|
@ -76,7 +76,7 @@ def main():
|
|||
)
|
||||
resp.raise_for_status()
|
||||
if not dest.parent.exists():
|
||||
dest.parent.mkdir()
|
||||
dest.parent.mkdir(parents=True)
|
||||
|
||||
with dest.open("wb") as f:
|
||||
f.write(resp.content)
|
||||
|
|
|
@ -60,7 +60,7 @@ def main():
|
|||
dest = Path("packages")
|
||||
if not dest.exists():
|
||||
logger.info(f"creating dir {dest}")
|
||||
dest.mkdir()
|
||||
dest.mkdir(parents=True)
|
||||
|
||||
for artifact in artifacts:
|
||||
logger.info(f"downloading {artifact['name']} archive")
|
||||
|
|
Loading…
Reference in New Issue
Block a user