How to check if Paramiko successfully uploaded a file to an SFTP server?
问题 I use Paramiko to put a file to an SFTP server: import paramiko transport = paramiko.Transport((host, port)) transport.connect(username=username, password=password) sftp = paramiko.SFTPClient.from_transport(transport) sftp.put(local_path, remote_path) Now, I would like to check if it worked. The idea is that I compare the checksum of the local file and the remote one (that is located on the SFTP server). Does Paramiko functionality allows to do that? If it is the case, how exactly it works?