You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?).
out=awaitself._ls(path, **kwargs) # Here we can go into a long listing since we don't limit itout0= [oforoinoutifo["name"].rstrip("/") ==path]
ifout0:
# exact hitreturnout0[0]
elifout:
# other stuff - must be a directory
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:
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:
remove the exact check (not sure why it was needed tbh?)
add max results supports to list as minimum as possible (get_info should be a constant in terms of API calls - ideally a single call)
so if you can phrase this in code as a PR, I'd be happy to see it.
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.
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: