示例#1
0
 def __init__(self, url, password, server, fileList):
     FileConnector.__init__(self, url, password, server, fileList)
     self.remoteFilePath = self.fileList[0]
     if len(self.fileList) == 2:
         self.localFilePath = self.fileList[1]
     else:
         self.localFilePath = ''
示例#2
0
 def __init__(self, url, password, server, fileList, timeout):
     FileConnector.__init__(self, url, password, server, fileList, timeout)
     self.remoteFilePath = self.fileList[0]
     if len(self.fileList) == 2:
         self.localFilePath = self.fileList[1]
     else:
         self.localFilePath = os.path.basename(self.remoteFilePath)
示例#3
0
 def __init__(self, url, password, server, fileList, timeout):
     FileConnector.__init__(self, url, password, server, fileList, timeout)
     self.remoteFilePath = self.fileList[0]
     if len(self.fileList) == 2:
         self.localFilePath = self.fileList[1]
     else:
         self.localFilePath = os.path.basename(self.remoteFilePath)
示例#4
0
 def launch(self):
     if FileConnector.launch(self) != 'fail':
         if self.downloadFile():
             print '+ Downloading Successful'
             print ''
         else:
             print '+ Downloading Failed'
             print ''
示例#5
0
 def launch(self):
     if FileConnector.launch(self) != 'fail':
         if self.downloadFile():
             print '+ Downloading Successful'
             print ''
         else:
             print '+ Downloading Failed'
             print ''
     else:
         print 'Error: File opreation can not work'
         print ''
示例#6
0
 def launch(self):
     if FileConnector.launch(self) != 'fail':
         self.uploadFile()
示例#7
0
 def launch(self):
     if FileConnector.launch(self) != 'fail':
         self.uploadFile()
     else:
         print 'Error: File opreation can not work'
         print ''
示例#8
0
 def launch(self):
     if FileConnector.launch(self) != 'fail':
         self.uploadFile()
     else:
         print 'Error: File opreation can not work'
         print ''
示例#9
0
 def __init__(self, url, password, server, fileList, timeout):
     FileConnector.__init__(self, url, password, server, fileList, timeout)
     self.localFilePath = self.fileList[0]
     self.remoteFilePath = self.fileList[1]
示例#10
0
 def __init__(self, url, password, server, fileList, timeout):
     FileConnector.__init__(self, url, password, server, fileList, timeout)
     self.localFilePath = self.fileList[0]
     self.remoteFilePath = self.fileList[1]