Skip to content

Commit 4c19ed6

Browse files
authored
fix: pass auto_mkdir in fsspec write (#463)
We were implicitly relying on behavior fixed by fsspec/filesystem_spec#1358.
1 parent 2103058 commit 4c19ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stactools/core/io/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def write_text_to_href(self, href: str, txt: str, **kwargs: Any) -> None:
109109
txt (str): The text to write.
110110
**kwargs: Additional keyword arguments to be passed to fsspec.open.
111111
"""
112-
with fsspec.open(href, "w", **kwargs) as destination:
112+
with fsspec.open(href, "w", auto_mkdir=True, **kwargs) as destination:
113113
destination.write(txt)
114114

115115

0 commit comments

Comments
 (0)