I am using pysftp to transfer files over network. I want to ensure reliability in this process. There's a put API in pysftp and it returns a SFTPAttributes object containing size of the transferred files. Is that enough to verify a successful transfer, I mean by comparing the size.
Or... it seems to me that I can also open the transferred file and use check method... Is it the correct way? I am just a little confused. Thank you.