Skip to content

Commit dcb4d8d

Browse files
committed
Make the parent of the downloaded tiff file
1 parent 10a1125 commit dcb4d8d

File tree

1 file changed

+3
-0
lines changed
  • src/murfey/instrument_server

1 file changed

+3
-0
lines changed

src/murfey/instrument_server/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,9 @@ def gather_upstream_tiffs(
494494
stream=True,
495495
headers={"Authorization": f"Bearer {tokens[session_id]}"},
496496
)
497+
(upstream_tiff_info.download_dir / tiff_path).parent.mkdir(
498+
parents=True, exist_ok=True
499+
)
497500
with open(upstream_tiff_info.download_dir / tiff_path, "wb") as utiff:
498501
for chunk in tiff_data.iter_content(chunk_size=32 * 1024**2):
499502
utiff.write(chunk)

0 commit comments

Comments
 (0)