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

Correct rmdir when not just a bucket #795

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

ianthomas23
Copy link
Contributor

Fixes #689.

This implements the fix proposed in #689 which looks good to me.

if key:
if await self._exists(path):
# User may have meant rm(path, recursive=True)
raise FileExistsError
Copy link
Member

Choose a reason for hiding this comment

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

By doing this, we are explicitly not dealing with directory placeholder files. Perhaps that should be stated in the docstring.

@martindurant martindurant merged commit b4b9fb2 into fsspec:main Sep 22, 2023
5 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.

s3fs rmdir command returns error when given a valid s3 path
2 participants