Skip to content

Commit cb7e478

Browse files
UpstreamDatab-rowan
authored andcommitted
bug: fix case where uploading files may not have parent directory.
1 parent 35ca87b commit cb7e478

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

goosebit/ui/routes.py

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ async def upload_update_local(
6363
filename: str = Form(...),
6464
):
6565
file = config.artifacts_dir.joinpath(filename)
66+
config.artifacts_dir.mkdir(parents=True, exist_ok=True)
6667

6768
temp_file = file.with_suffix(".tmp")
6869
if init:

0 commit comments

Comments
 (0)