getwilds / sixtyfour

🚚 CEO, entrepreneur
https://getwilds.org/sixtyfour/
Other
11 stars 1 forks source link

aws_file_upload changes file w/o extension into a directory within the s3 bucket #62

Closed sckott closed 5 months ago

sckott commented 5 months ago

aws_file_upload uses s3fs::s3_file_copy internally. look into that function, perhaps somethjing wrong

sckott commented 5 months ago

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"))