Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fetchRemoteFile(self, fn):
- '''
- Fetches file (fn) from sftp connection and stores data locally
- '''
- print "Remote file: %s" % (self.rootdir+'/'+fn)
- print "Local file: %s" % (self.localdir+fn)
- try:
- self.conn.get(self.rootdir+'/'+fn, self.localdir+fn)
- except Exception, e:
- pass
Add Comment
Please, Sign In to add comment