mirror of
https://github.com/restic/restic.git
synced 2025-10-09 23:14:08 +00:00
Examine file ctime when checking if files have changed.
This commit is contained in:
@@ -453,8 +453,13 @@ func fileChanged(fi os.FileInfo, node *restic.Node, ignoreInode bool) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// check size
|
||||
// check status change timestamp
|
||||
extFI := fs.ExtendedStat(fi)
|
||||
if !extFI.ChangeTime.Equal(node.ChangeTime) {
|
||||
return true
|
||||
}
|
||||
|
||||
// check size
|
||||
if uint64(fi.Size()) != node.Size || uint64(extFI.Size) != node.Size {
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user