Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert auto_mkdir default in open() and special case local #1365

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

martindurant
Copy link
Member

@martindurant martindurant commented Sep 18, 2023

@@ -284,6 +288,11 @@ def open_files(
protocol=protocol,
expand=expand,
)
if fs.protocol == "file":
fs.auto_mkdir = auto_mkdir
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see an easier way to do this than this fragile line, because the creation of the fs is hidden within the unchaining logic inside the call above.

joverlee521 added a commit to nextstrain/cli that referenced this pull request Sep 18, 2023
Changes to the `auto_mkdir` parameter in fsspec/filesystem_spec#1358
leads to the error described in fsspec/s3fs#790.

Upstream fixes to come soon via fsspec/filesystem_spec#1365
but good to avoid versions that we know are broken.
@martindurant martindurant merged commit e3b19cc into fsspec:master Sep 19, 2023
11 checks passed
@martindurant martindurant deleted the revert_mkdir branch September 19, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uploading broken in 2023.9.1 test_to_csv_nodir and test_to_json_results fail with fsspec-2023.9.1
1 participant