-
Notifications
You must be signed in to change notification settings - Fork 64
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
is_dir() and is_file() are not working properly for gs #493
Comments
This doesn't repro generically, so it has something to do with the configuration of your bucket/storage and the objects that actually exist in your storage. For example, I see: In [1]: from cloudpathlib import CloudPath
In [2]: CloudPath('gs://cloudpathlib-test-bucket/performance_tests/').is_dir()
Out[2]: True
In [2]: CloudPath('gs://cloudpathlib-test-bucket/performance_tests').is_dir()
Out[2]: True Do you have more information about your use case? A few helpful questions:
|
Quick update: I tried creating a path with gsutil: |
Hey @pjbull, any updates on this? 😅 |
Hey,
I tried to use the
is_dir
andis_file
functions from both s3 and gs, but discovered that:looks like in gs everything is classified as a file unless I strip the last "/".
Any Idea why is this happening?
using
cloudpathlib==0.20.0
Thanks in advance
The text was updated successfully, but these errors were encountered: