mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 13:55:15 +02:00
Add "--ignore-existing" flag.
Add option to completely ignore existing files and not consider them for transfer. Fixes #274
This commit is contained in:
committed by
Nick Craig-Wood
parent
5189231a34
commit
25f22ec561
@ -281,6 +281,11 @@ func checkOne(pair ObjectPair, out ObjectPairChan) {
|
||||
if !src.Storable() {
|
||||
return
|
||||
}
|
||||
// If we should ignore existing files, don't transfer
|
||||
if Config.IgnoreExisting {
|
||||
Debug(src, "Destination exists, skipping")
|
||||
return
|
||||
}
|
||||
// Check to see if changed or not
|
||||
if Equal(src, dst) {
|
||||
Debug(src, "Unchanged skipping")
|
||||
|
Reference in New Issue
Block a user