operations: implement --refresh-times flag to set modtimes on hashless backends

This commit is contained in:
Nick Craig-Wood
2020-06-16 16:24:54 +01:00
parent d174b97af7
commit 3efdf5e095
4 changed files with 38 additions and 1 deletions

View File

@ -207,7 +207,7 @@ func equal(ctx context.Context, src fs.ObjectInfo, dst fs.Object, opt equalOpt)
fs.Debugf(src, "%v differ", ht)
return false
}
if ht == hash.None {
if ht == hash.None && !fs.Config.RefreshTimes {
// if couldn't check hash, return that they differ
return false
}