aws_file_upload changes file w/o extension into a directory within the s3 bucket
Closed this issue · 1 comments
sckott commented
aws_file_upload
uses s3fs::s3_file_copy
internally. look into that function, perhaps somethjing wrong
sckott commented
nevermind. maybe due to using paws now.
note about how it works though
# both of these do the same thing, makes a file in the bucket
aws_file_upload("LICENSE.md", s3_path(bucket, "LICENSE.md"))
aws_file_upload("LICENSE.md", s3_path(bucket))
# however, its different for a file without an extension
# this makes a file in the bucket
aws_file_upload("DESCRIPTION", s3_path(bucket))
# whereas this creates a directory called DESCRIPTION with a file DESCRIPTION within it
aws_file_upload("DESCRIPTION", s3_path(bucket, "DESCRIPTION"))