generalui/s3p

Question: exact incantation to copy contents of bucket1/deeply/nested/folder directly into bucket2 ?

Closed this issue · 1 comments

I need exact incantation to copy contents of bucket1/deeply/nested/folder directly into the root directory of bucket2.

Incantations I tried, and how they failed:

npx s3p copy --bucket bucket1 --prefix deeply/nested/folder/ --to-bucket bucket2 --to-prefix /

Result: anomalous prefix was created in bucket2, consisting of TWO nested directories named /, i.e. bucket1/deeply/nested/folder/index.html was copied to bucket2/\//\//index.html, while bucket2/index.html was desired.

npx s3p copy --bucket bucket1 --prefix deeply/nested/folder/ --to-bucket bucket2

Result: the files were copied with full paths as relative to the source bucket, i.e. bucket1/deeply/nested/folder/index.html was copied to bucket2/deeply/nested/folder/index.html, while bucket2/index.html was desired.

How do I?

Duplicate of #73 🤦