Reputation: 3115
Due to my ignorance, I named a folder on S3 in unicode a few years ago. I'm able to list objects without spaces easily, but I can't access any files/folders with spaces. I've tried delimiting the space with a \
, but it didn't work.
Example folder path:
s3://my-folder/a-thing/إلى آخره
Command looks like:
aws s3 ls s3://my-folder/a-thing/إلى\ آخره
Upvotes: 1
Views: 1540
Reputation: 16003
To escape the space, you need to add the delimiter before the space, not after. Additionally, the key of the object you are looking at ends in a /
so you need to include that or add --recursive
. So your particular command should look like this:
> aws s3 ls s3://folder-object/another/إلى \آخره/
2015-10-15 09:36:20 0 إلى آخره/
2015-10-15 09:37:40 152 إلى آخره/somefile.txt
Upvotes: 1