Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If there is no syncfilehash header, this object didn't come from s3-sync #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dtmcmath
Copy link

This is to handle issue #13.

When I'm sloppy/rushed, I sometimes tweak "just one file, what could it hurt?" with something like s3cmd. When I do that, s3-sync loses track of the file's MD5, but does so in a way that makes it just act like there is no change, ever.

Since x-amz-meta-syncfilehash is a custom header, its absence means this file wasn't PUT originally using s3-sync, and there's really no way to compare it, reasonably. Maybe one could fall back to etag and comparing md5 of the file, but details.md5 isn't just for the file, so that's not so good.

in the first place.  It should be treated as "changed", because there
is no way to tell whether it's really changed.  "etag" doesn't
match "details.md5" because details.md5 encodes some header and
other information.
Boolean algebra is, apparenly, not my strongest suit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant