I noticed, that there is a parameter named confirm for the put method of the paramiko package. I want to know how it works. what is its function? and how to test it.
See the SFTPClient.put
documentation:
confirm
(bool) – whether to do astat()
on the file afterwards to confirm the file size
If the size does not match, the SFTPClient.put
throws IOError
exception with "size mismatch in put!" message.