SCP Exit Codes

Hello,

I need to ensure that SCP does not leave any partially transmitted files on the remote server due to transmission errors.

Can it be assumed that:

1) if SCP returns a success with Exit Code == 0, a complete local file has been copied in its entirety to the remote location?

2) if SCP returns a failure with Exit Code > 0, there is no partial file created/left on the remote location?

Thanks.

Without reading up on it or testing it, I would guess:

1) yes

2) no