示例#1
0
 def upload_file(self, src, dst):
     try:
         dst_parts = dst.split('/')
         file = dst_parts.pop()
         path = '/'.join(dst_parts) + '/'
         client = Client()
         client.send_file(self.__create_connection__(path), file, src)
     except Exception as e:
         print e
         pass