We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d52939 commit 0b7c7ddCopy full SHA for 0b7c7dd
1 file changed
src/bma_client_lib/bma_client.py
@@ -378,6 +378,7 @@ def upload_file(self, path: Path, attribution: str, file_license: str) -> dict[s
378
# create symlink to file in workdir
379
workpath = self.path / r.json()["bma_response"]["links"]["downloads"]["original"][1:]
380
if not workpath.exists():
381
+ workpath.parent.mkdir(exist_ok=True)
382
workpath.symlink_to(path)
383
384
return r.json() # type: ignore[no-any-return]
0 commit comments