Implement --no-update-modtime flag - fixes #511
This commit is contained in:
parent
452a5badc1
commit
b9479cf7ab
4 changed files with 31 additions and 1 deletions
|
@ -147,7 +147,7 @@ func Equal(src, dst Object) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if !Config.CheckSum {
|
||||
if !(Config.CheckSum || Config.NoUpdateModTime) {
|
||||
// Size and hash the same but mtime different so update the
|
||||
// mtime of the dst object here
|
||||
err := dst.SetModTime(srcModTime)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue