We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5494a6f commit f7a623aCopy full SHA for f7a623a
1 file changed
update.py
@@ -127,9 +127,10 @@ def find_latest_version() -> str:
127
assert re.match("\d{4}[a-z]$", version), version
128
129
target_dir = WORKING_DIR / version / "download"
130
+ target_dir.mkdir(parents=True, exist_ok=True)
131
132
fobj.seek(0)
- with open(f"tzdata{version}.tar.gz", "wb") as f:
133
+ with open(target_dir / f"tzdata{version}.tar.gz", "wb") as f:
134
f.write(fobj.read())
135
136
return version
0 commit comments