-
Notifications
You must be signed in to change notification settings - Fork 581
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
Faster HfFileSystem.glob
#1815
Faster HfFileSystem.glob
#1815
Conversation
Co-authored-by: Lucain <lucainp@gmail.com>
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expand_info
is more descriptive, so I slightly prefer it over expand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! So this PR is essentially to not fetch details by default in glob
right? All the rest is only renaming variables?
Yes exactly :) I think |
Following #1809
I added the
expand_info
argument to_ls_tree
instead ofdetail
(it always returns dicts anyway) so that glob can still passdetail=True
but withexpand_info=False
.I also replaced the
detail
argument ininfo()
with this one, sinceinfo()
always return a dict anyway (which is consistent withdetail=True
).(also let me know if you prefer naming the new argument
expand
instead ofexpand_info
for consistency with the Hub API)