-
Notifications
You must be signed in to change notification settings - Fork 146
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
Info call makes unnecessary long listing for "directories" #656
Comments
If I understand, you want there to be a max results argument to ls OR that there be a first-pass exact hit check?
It is totally reasonable that all three should have the same logic here, so if you can phrase this in code as a PR, I'd be happy to see it. |
thanks @martindurant ! I think s3 / Azure logic is just to have a check that at least some objects exist under the prefix. They don't do exact hit check AFAIU, and they don't list everything. So, the proposed solution is to:
I'll try to get there. Intention of this issue was to ask if there were some reasons for the existing logic that I'm not aware / can't see. |
Just adding a +1 here - this also applies to |
When path is a "directory" (prefix) we might end up going into full listing operation to just get an info for a single path. We call
ls
and we don't pass any limits (and it seems GCSFS doesn't support max results atm?).Is it intentional for some reason?
On s3 and Azure, in similar place we list to check if at least a single key exists (we don't check for an exact hit).
Can we drop the exact hit check and pass max results into
ls
?The text was updated successfully, but these errors were encountered: