Skip to content
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

Feature: file_download helper function #18

Open
6 tasks
chrisbc opened this issue May 11, 2022 · 0 comments
Open
6 tasks

Feature: file_download helper function #18

chrisbc opened this issue May 11, 2022 · 0 comments
Assignees

Comments

@chrisbc
Copy link
Member

chrisbc commented May 11, 2022

As a user I want the client to provide me a simple download helper so that I can fetch files as easily as possible from the ToshiAPI, and it

  • should also let me rename the file
  • should let me specify a path to save to

NB both these can be supported with similar logic to posix mv command .i.e

When you specify a single source file and the target is not a directory, mv moves the source to the new name, by a simple rename if possible.

Done when:

  • the client has a file_download helper function
  • uses the usual ENV variables by default
  • supports saving to specific output folder
  • supports renaming the file
  • If user specifies a ToshiID that does not support FileInterface then throw a helpful exception.
  • on success return the final name of the saved file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants