InvalidRequest: This copy request is illegal because it is trying to copy an object to itself without changing the object's metadata, storage class, website redirect location or encryption attributes. status code: 400
I can get the behavior I want with the AWS CLI like so:
I know I could just copy the data to another path and copy it back to reset the LastModified timestamp, but wondering if there's a better way with s5cmd. Thanks!
Hi, thanks for mentioning this issue. I believe that what we need to do is add a new flag called metadataDirective to the cp command. Will work on a PR as soon as I can.
I've tried things like this to see if the LastModified time updates:
But I get this error:
I can get the behavior I want with the AWS CLI like so:
I know I could just copy the data to another path and copy it back to reset the LastModified timestamp, but wondering if there's a better way with s5cmd. Thanks!