mirror of
https://github.com/rclone/rclone.git
synced 2025-06-25 22:41:25 +02:00
copy: error out if dst could not be listed
This commit is contained in:
parent
897690d997
commit
4c45cbea18
@ -1002,7 +1002,7 @@ func (s *syncCopyMove) processJob(job listDirJob) (jobs []listDirJob) {
|
|||||||
if dstListErr == ErrorDirNotFound {
|
if dstListErr == ErrorDirNotFound {
|
||||||
// Copy the stuff anyway
|
// Copy the stuff anyway
|
||||||
} else if dstListErr != nil {
|
} else if dstListErr != nil {
|
||||||
s.processError(errors.Wrapf(srcListErr, "error reading destination directory %q", job.remote))
|
s.processError(errors.Wrapf(dstListErr, "error reading destination directory %q", job.remote))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user