问题
I am trying to copy a file by the same My CV 2017.pdf
from one AWS bucket to the other using the AWS command line. But I am getting error doing that.
I tried using My\ Cv\ 2017.pdf
and 'My CV 2017.pdf'
, both did not work.
回答1:
Use double quotes. For example:
aws s3 cp "s3://source-bucket/My CV 2017.pdf" "s3://destination-bucket/My CV 2017.pdf"
来源:https://stackoverflow.com/questions/46997354/how-to-copy-a-file-with-spaces-in-its-file-name-from-one-bucket-to-the-other-usi