mirror of
https://github.com/rclone/rclone.git
synced 2025-08-17 09:01:33 +02:00
Implement -I, --ignore-times for unconditional upload - fixes #311
This commit is contained in:
@ -315,6 +315,12 @@ func checkOne(pair ObjectPair, out ObjectPairChan) {
|
||||
Debug(src, "Destination exists, skipping")
|
||||
return
|
||||
}
|
||||
// If we should upload unconditionally
|
||||
if Config.IgnoreTimes {
|
||||
Debug(src, "Uploading unconditionally as --ignore-times is in use")
|
||||
out <- pair
|
||||
return
|
||||
}
|
||||
// If UpdateOlder is in effect, skip if dst is newer than src
|
||||
if Config.UpdateOlder {
|
||||
srcModTime := src.ModTime()
|
||||
|
Reference in New Issue
Block a user