-
Notifications
You must be signed in to change notification settings - Fork 1
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
Invalid copy source encoding #50
Comments
Sorry about that. I will have to see if it is an aws thing, a paws sdk issue or an s3fs issue |
From what I can see aws says to avoid % characters in s3 uris (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html): Characters to avoid
|
Thanks for the reply. |
No worries it looks like an issues with library(paws)
library(s3fs)
client = s3(config(credentials(profile = "paws")))
resp <- client$put_object(
Bucket = "paws-rm",
Key = "rm/%01file%/output.txt",
Body = charToRaw("helloworld")
)
s3_file_system(profile_name = "paws")
s3_dir_ls("s3://paws-rm", recurse = T)
#> [1] "s3://paws-rm/rm/%01file%/output.txt" Created on 2024-08-06 with reprex v2.1.1 |
yes, probably |
This does seem to work
|
FYI. I noticed the same issue occurs if you use s3_dir_copy and in that folder on S3 there is a file with that '%' symbol
|
It looks like this issue is coming from the paws sdk paws-r/paws#819 |
Try the latest paws.common development version: remotes::install_github("dyfanjones/paws/paws.common") |
I have a file which is on S3 which basically looks like this
202408050803-lum_v2_gs_nl-%13668%-1002120667.wav
. If I want to copy it to another folder, I'm getting 'invalid source encoding' due to that '%' character.The text was updated successfully, but these errors were encountered: