Skip to content

Commit

Permalink
bug: fix case where uploading files may not have parent directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
UpstreamData authored and b-rowan committed Aug 28, 2024
1 parent b3cd223 commit d7ad5c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions goosebit/ui/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ async def upload_update_local(
filename: str = Form(...),
):
file = config.artifacts_dir.joinpath(filename)
config.artifacts_dir.mkdir(parents=True, exist_ok=True)

temp_file = file.with_suffix(".tmp")
if init:
Expand Down

0 comments on commit d7ad5c9

Please sign in to comment.