-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat(storage/transfermanager): add DownloadDirectory #10430
Conversation
Prototype. Follow-up PRs: - Cleanup on failure - Skipifexists + option to fail if exists? - strip prefix ? (strip prefix on local files) - if empty object, create a directory instead ? - possibly more integration 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.
A few minor things; generally looks good
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.
One more minor suggestion, otherwise looks good.
Callback func([]DownloadOutput) | ||
|
||
// OnObjectDownload will run after every finished object download. | ||
// It can only be set if the Downloader has the [WithCallbacks] option set. |
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.
I think we could probably loosen this requirement? A user could want to run in sync mode and still use this to track/log progress.
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.
Done.
mvp
Follow-up PRs: