-
Notifications
You must be signed in to change notification settings - Fork 38
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
mkdir(parents=True
) tries to create the bucket if it's empty
#111
Labels
bug
Something isn't working
Comments
Thanks for reporting! I'll add this as a test, and will work on a fix soon. |
Hey @danielgafni Could you please try to reproduce this bug and provide the output of I was trying to reproduce it, but can't. |
Hey, sure, I'll try to do it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I run into this issue today...
I was using
UPath("gs:https://my-fresh-bucket/some-dir/another-dir/file").parent.mkdir(parents=True, exist_ok=True)
.The bucket was empty and didn't contain any objects.
universal-pathlib
attempted to create the bucket instead of creating the directory structure, which caused the code to fail.The text was updated successfully, but these errors were encountered: