Guest User

Untitled

a guest
Feb 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. def fetchRemoteFile(self, fn):
  2. '''
  3. Fetches file (fn) from sftp connection and stores data locally
  4. '''
  5.  
  6. print "Remote file: %s" % (self.rootdir+'/'+fn)
  7. print "Local file: %s" % (self.localdir+fn)
  8. try:
  9. self.conn.get(self.rootdir+'/'+fn, self.localdir+fn)
  10. except Exception, e:
  11. pass
Add Comment
Please, Sign In to add comment