Skip to content

Yet another fix for isdir#676

Merged
martindurant merged 6 commits intofsspec:mainfrom
Bjoern-Rapp:dir_marker
Apr 28, 2025
Merged

Yet another fix for isdir#676
martindurant merged 6 commits intofsspec:mainfrom
Bjoern-Rapp:dir_marker

Conversation

@Bjoern-Rapp
Copy link
Copy Markdown
Contributor

This is yet another stab at a fix for #312.
Empty files that ends with "/" are treated as empty directories in "ls" and "info".
Test requsted in #313 is added.

@martindurant
Copy link
Copy Markdown
Member

This seems to break the batch copy tests. It is plausible, but probably unlikely, that the tests are incorrect - see https://filesystem-spec.readthedocs.io/en/latest/copying.html

@Bjoern-Rapp
Copy link
Copy Markdown
Contributor Author

The tests are correct, and should all pass now.

Copy link
Copy Markdown
Member

@martindurant martindurant left a comment

Choose a reason for hiding this comment

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

OK, looks good. I just have a couple of questions.

Comment thread gcsfs/core.py Outdated
Comment thread gcsfs/core.py Outdated
@Bjoern-Rapp
Copy link
Copy Markdown
Contributor Author

Does this look good now?

@martindurant martindurant merged commit 16b536f into fsspec:main Apr 28, 2025
6 checks passed
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.

2 participants