Beispiel #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 = ''
Beispiel #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)
Beispiel #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)
Beispiel #4
0
 def launch(self):
     if FileConnector.launch(self) != 'fail':
         if self.downloadFile():
             print '+ Downloading Successful'
             print ''
         else:
             print '+ Downloading Failed'
             print ''
Beispiel #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 ''
Beispiel #6
0
 def launch(self):
     if FileConnector.launch(self) != 'fail':
         self.uploadFile()
Beispiel #7
0
 def launch(self):
     if FileConnector.launch(self) != 'fail':
         self.uploadFile()
     else:
         print 'Error: File opreation can not work'
         print ''
Beispiel #8
0
 def launch(self):
     if FileConnector.launch(self) != 'fail':
         self.uploadFile()
     else:
         print 'Error: File opreation can not work'
         print ''
Beispiel #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]
Beispiel #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]