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

file download #7

Open
ijlyttle opened this issue Jan 5, 2022 · 0 comments
Open

file download #7

ijlyttle opened this issue Jan 5, 2022 · 0 comments

Comments

@ijlyttle
Copy link
Member

ijlyttle commented Jan 5, 2022

maybe something like:

bx_resp_write_file(resp, path = bx_local(), overwrite = FALSE)
bx_request("files/12345/content") %>%
  req_perform() %>%
  bx_resp_write_file("~/Documents")

if path is a directory, use the remote filename, otherwise use the provided path

This suggests a function bx_local():

bx_local(...) # returns a local path, like `fs::path()`
bx_local_set(path)
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

1 participant