-
Notifications
You must be signed in to change notification settings - Fork 145
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
Pseudo folders break directory detection code in fs.info #312
Comments
I would argue that |
Yes that is what I meant by pseudo folder. The issue here is that what The pseudo folders are usually indicated by a zero size objects ending with |
Totally agree that this is wrong, and there should be a test that ensures that repeated calls get the same result. |
I also agree consistency is the important part. |
Just wanted to check if there is any news on this issue? |
This is likely fixed in the current release. Are you still experiencing a failing case, @bilelomrani1 ? |
I apologize for the confusion caused by my previous comment. After further investigation, I realized that the issue I encountered was not related to what I initially thought. Instead, I discovered that the problem stemmed from the fact that |
no worries :) |
Various tools/libraries create pseudo folders in GS, for example Tensorflow or using the "Create folder" function in the Google Storage Browser UI.
The code that identifies directories does not handle this properly: https://github.com/remerge/gcsfs/blob/be50a9a8d23a04529c40540a1cc123ce5b3512fc/gcsfs/core.py#L819-L820
The folder name will be an exact match and assumed to be a file on the first invocation. This breaks various other methods like
isdir
.How to reproduce:
I'll create a PR tomorrow to fix this.
The text was updated successfully, but these errors were encountered: