Try to search your question here, if you can't find : Ask Any Question Now ?

How to check if Paramiko successfully uploaded a file to an SFTP server?

HomeCategory: stackoverflowHow to check if Paramiko successfully uploaded a file to an SFTP server?
Avatarkundan asked 5 days ago

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?

1 Answers
Best Answer
AvatarMatthias answered 5 days ago
Your Answer

5 + 7 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com