Skip to content

Commit

Permalink
make aws_file_download return a path instead of empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Oct 18, 2023
1 parent 8fc8659 commit a529636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/files.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ aws_file_upload <- function(bucket, path, key = basename(path), ...) {
#' @inheritParams aws_file_upload
#' @param ... named parameters passed on to [download_file](https://www.paws-r-sdk.com/docs/s3_download_file/)
#' @details Wraps [download_file](https://www.paws-r-sdk.com/docs/s3_download_file/)
#' @return `list` of length 0
#' @return Path of downloaded file
#' @examples \dontrun{
#' temp_path <- tempfile()
#' aws_file_download(bucket = "s64-test-2", key = "DESCRIPTION",
Expand All @@ -52,6 +52,7 @@ aws_file_upload <- function(bucket, path, key = basename(path), ...) {
#' }
aws_file_download <- function(bucket, key, path, ...) {
env64$s3$download_file(Bucket = bucket, Key = key, Filename = path, ...)
return(path)
}

#' File attributes
Expand Down
2 changes: 1 addition & 1 deletion man/aws_file_download.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a529636

Please sign in to comment.