-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add http file download functionality #33
Conversation
Tests failing in GH but I can't see why. Documented in #37 |
Probably a billing issue have to wait for the new month for CI to start working. |
Please add a description to: |
…ealm into milkshak3s-eld-file-download
moved from _dst _uri -> dst uri to keep in line with used var naming scheme.
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. 🚀
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 😎. Just a little more clarity in the docs on how existing files are handled.
docs/_docs/user-guide/eldritch.md
Outdated
@@ -27,7 +27,7 @@ The <b>file.copy</b> copies a file from src path to dst path. If dst path doesn' | |||
### file.download | |||
`file.download(uri: str, dst: str) -> None` | |||
|
|||
The <b>file.download</b> method is very cool, and will be even cooler when Nick documents it. | |||
The <b>file.download</b> method downloads a file at the URI specified in `uri` to the path specified in `dst`. This currently only supports `http` & `https` protocols. |
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.
Please add a description of what will happen if the dst file already exists.
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.
Magical! 🧙♂️
Add http file download functionality (#33) * Add http file download functionality * Update download_impl.rs * Remove my print testing whoops * Add docs * Updated vars moved from _dst _uri -> dst uri to keep in line with used var naming scheme. * Fixed one more ^ * Updated var naming scheme. * Update eldritch.md Co-authored-by: Hulto <hulto@hul.to>
What type of PR is this?
Implements the
download
function for the implant.This is a solution for #19
/kind feature
What this PR does / why we need it:
Implements the download function for the Eldritch implant
Which issue(s) this PR fixes:
Fixes #19