Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Support condition headers in cp command #84

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant

It is useful for the cp command to support the extra headers, because conditions such as x-amz-copy-source-if-modified-since can be given.
PreconditionFailed errors need to be accounted for in responses, as these are normal when conditions are specified.

Example usage:

s3cmd cp -r -v --add-header "x-amz-copy-source-if-modified-since:date -u -d '1 hour ago' | cut -d\ -f 1-4,6" s3://source-bucket/ s3://dest-bucket/

Take into account additional headers in cp command. Support for condi…
…tion headers.

It is useful for the cp command to support the extra headers, because conditions such as x-amz-copy-source-if-modified-since can be given.
PreconditionFailed errors need to be accounted for in responses, as these are normal when conditions are specified.

Will re-open from different branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment