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

mkdir(parents=True) tries to create the bucket if it's empty #111

Open
danielgafni opened this issue Jul 4, 2023 · 3 comments
Open

mkdir(parents=True) tries to create the bucket if it's empty #111

danielgafni opened this issue Jul 4, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@danielgafni
Copy link

I run into this issue today...
I was using UPath("gs://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.

@ap--
Copy link
Collaborator

ap-- commented Jul 6, 2023

Thanks for reporting!

I'll add this as a test, and will work on a fix soon.

@ap-- ap-- added the bug Something isn't working label Aug 2, 2023
@ap--
Copy link
Collaborator

ap-- commented Sep 3, 2023

Hey @danielgafni

Could you please try to reproduce this bug and provide the output of pip freeze and a code sample?

I was trying to reproduce it, but can't.

@danielgafni
Copy link
Author

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
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants