-
Notifications
You must be signed in to change notification settings - Fork 572
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
Implement list_files_info
+ tests
#1435
Conversation
The documentation is not available anymore as the PR was closed or merged. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1435 +/- ##
==========================================
+ Coverage 84.34% 84.44% +0.10%
==========================================
Files 52 52
Lines 5430 5465 +35
==========================================
+ Hits 4580 4615 +35
Misses 850 850
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
get_files_info
+ testslist_files_info
+ tests
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.
Extensive testing suite! Thanks for your work @Wauplin
This PR adds
list_files_info
that is a wrapper around 2 endpoints:/paths-info
to get info about a list of paths/tree
to recursively get info about files in a folder. It is paginated so we return a Python generator instead of a list.With
list_files_info
we should be able to implement aCommitOperationCopy
-ish operator that was discussed in #1083 and https://github.com/huggingface/moon-landing/issues/4370 (internal link). For more implementation details, see related discussion on slack (internal) as well as this comment.TODO:
list_files_info
list_repo_files
(EDIT depends on https://github.com/huggingface/moon-landing/issues/5993)Examples:
"vae/"
folder in"stabilityai/stable-diffusion-2"