s5cmd
s5cmd copied to clipboard
Parameters --no-clobber, -n with cp is working in a wrong way.
I was copying a batch of images to a s3 bucket with a command similar to the following:
s5cmd cp -n --acl "public-read" 2022/01 s3://mybucket-datap/uploads/images/2022/
The structure of my files are images, each one inside a directory corresponding to the days of a month. The thing is that the day 01 and the images corresponding to this day already existed, so with the --no-clobber
I should avoid copying those images because it already exists, right?
The result was that it copied the files again, but adding a second extension, looking like this:
file01.jpeg.jpeg
file02.jpg.jpg
file03.png.png
...
I am using v2.2.2.2-48f7e59
version of s5cmd on Linux Ubuntu 22.04
.