1
0
mirror of https://github.com/rclone/rclone.git synced 2025-01-14 10:19:57 +01:00

local: fix equality check for times

This commit is contained in:
Nick Craig-Wood 2017-11-05 09:02:23 +00:00
parent 4d081ec87e
commit 245edd1b0e

View File

@ -772,7 +772,7 @@ func (o *Object) setMetadata(info os.FileInfo) {
if o.size != info.Size() {
o.size = info.Size()
}
if o.modTime != info.ModTime() {
if !o.modTime.Equal(info.ModTime()) {
o.modTime = info.ModTime()
}
if o.mode != info.Mode() {