Skip to content

Commit

Permalink
fix: pass auto_mkdir in fsspec write (#463)
Browse files Browse the repository at this point in the history
We were implicitly relying on behavior fixed by
fsspec/filesystem_spec#1358.
  • Loading branch information
gadomski authored Sep 18, 2023
1 parent 2103058 commit 4c19ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stactools/core/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def write_text_to_href(self, href: str, txt: str, **kwargs: Any) -> None:
txt (str): The text to write.
**kwargs: Additional keyword arguments to be passed to fsspec.open.
"""
with fsspec.open(href, "w", **kwargs) as destination:
with fsspec.open(href, "w", auto_mkdir=True, **kwargs) as destination:
destination.write(txt)


Expand Down

0 comments on commit 4c19ed6

Please sign in to comment.