Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with pysftp.Connection(host=host, username=userName, password=passWord) as sftpVal:
- #print(sftpVal.listdir()) #list directories in sftp home
- sftpVal.put(source_file_path,'incoming/'+fileName) #(localPath, destinationPath)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement