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
I realized when using a later version of fsspec than the ones from 2023 that the .ls() was super slow. The reason came in in this issue PR: #1479 where always the info is taken for all files
and then thrown away - for a large number of files this can become costly and the detail flag can not be used to reduce work. Before the mentioned PR the os.listdir was used which just list the number of files.
I just wanted to ask if I can open a PR in which thels used the os.listdir again for detail=False and if the path is a file it will just return the path to the file - no much use to call it for a file with not details but should of cours work. And if the details=True the code stays as is?
Let me know what you think.
Best
Frank
The text was updated successfully, but these errors were encountered:
Hi fsspec developers,
I realized when using a later version of fsspec than the ones from 2023 that the
.ls()
was super slow. The reason came in in this issue PR: #1479 where always theinfo
is taken for all filesand then thrown away - for a large number of files this can become costly and the
detail
flag can not be used to reduce work. Before the mentioned PR theos.listdir
was used which just list the number of files.I just wanted to ask if I can open a PR in which the
ls
used theos.listdir
again for detail=False and if the path is a file it will just return the path to the file - no much use to call it for a file with not details but should of cours work. And if thedetails=True
the code stays as is?Let me know what you think.
Best
Frank
The text was updated successfully, but these errors were encountered: