-
Notifications
You must be signed in to change notification settings - Fork 1
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
TransferUtils #288
base: master
Are you sure you want to change the base?
TransferUtils #288
Conversation
willronchetti
commented
Sep 29, 2023
- A small addition to provision some baseline utilities for downloading files in parallel from the portal and from searches
- TODO: update with patching functionality once data model is in place
Pull Request Test Coverage Report for Build 6355336442
💛 - Coveralls |
auth = get_authentication_with_server(key, ff_env) | ||
get_url = '/'.join([auth['server'], _sls(obj_id)]).rstrip('/') + '/@@download' | ||
response = authorized_request(get_url, auth=auth, verb='GET', allow_redirects=False) | ||
return response.headers['Location'] |
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.
Should this check for a 301?
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.
Given the @@download
at the end it will throw exception prior either way if it doesn't find it, so not sure there is a huge point (there is no scenario where 301 isn't returned and this code is reached, it would have thrown exception prior to this point)