brokamp-group / s3

More efficient downloading and usage of files hosted on AWS S3
http://brokamp-group.github.io/s3/
Other
3 stars 2 forks source link

add option to force public download? #15

Closed cole-brokamp closed 3 years ago

cole-brokamp commented 3 years ago

Right now, if a user has AWS credentials setup as environment variables, boto will be utilized to download the file, even if it is publicly available. The workaround seems to be to use withr to temporarily unset these variables, but this might not be sustainable if how we check for private/public files ever changes.

We could add an option to force the public download method, e.g.:

force_public: defaults to FALSE; if TRUE, ignore any environment variables specifying AWS credentials and download the public file anonymously