mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
sync,copy,move: make sure we output a debug log on start of transfer
Before this change we weren't outputing a debug log on the start of a transfer for files which existed on the source but not in the destination. This was different to the single file copy routine.
This commit is contained in:
parent
5755e31ef0
commit
2b8af4d23f
@ -407,6 +407,7 @@ func (s *syncCopyMove) pairRenamer(in *pipe, out *pipe, fraction int, wg *sync.W
|
||||
src := pair.Src
|
||||
if !s.tryRename(src) {
|
||||
// pass on if not renamed
|
||||
fs.Debugf(src, "Need to transfer - No matching file found at Destination")
|
||||
ok = out.Put(s.ctx, pair)
|
||||
if !ok {
|
||||
return
|
||||
@ -1026,6 +1027,7 @@ func (s *syncCopyMove) SrcOnly(src fs.DirEntry) (recurse bool) {
|
||||
}
|
||||
if !NoNeedTransfer {
|
||||
// No need to check since doesn't exist
|
||||
fs.Debugf(src, "Need to transfer - File not found at Destination")
|
||||
ok := s.toBeUploaded.Put(s.ctx, fs.ObjectPair{Src: x, Dst: nil})
|
||||
if !ok {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user