Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. with pysftp.Connection(host=host, username=userName, password=passWord) as sftpVal:
  2. #print(sftpVal.listdir()) #list directories in sftp home
  3. sftpVal.put(source_file_path,'incoming/'+fileName) #(localPath, destinationPath)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement