You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
GordonGustafson
changed the title
Any way to "touch" files? (update last-modified date to prevent Lifecycle police from deleting)
Any way to "touch" files? (update last-modified date to reset Lifecycle policy timer)
Sep 21, 2023
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!
The text was updated successfully, but these errors were encountered: