-
Notifications
You must be signed in to change notification settings - Fork 25
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 fs copy from HTTP #669
Implement fs copy from HTTP #669
Conversation
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.
LGTM.
Probably a dumb question, but this code is the back end for the fs
tool and the files_to_copy
/files_to_link
sections for drivers, right?
@christinaholtNOAA It's actually a great question: The core support is indeed implemented in code deeper in the library than the drivers' |
Synopsis
Fixes #667.
See updated docs for an example but, in short, for file copies (CLI
uw fs copy
, APIuwtools.api.fs.copy()
), interpret paths starting withhttp://
orhttps://
as URLs of remote files and fetch them to the local filesystem withrequests
. For example:Unavailable upstream files are detected, leading to a no-op:
Type
Impact
Checklist