Package install :: Package MoSTBioDat :: Package Transfer :: Module fileFTPtools :: Class fileFtpTools
[hide private]
[frames] | no frames]

Class fileFtpTools

source code

object --+
         |
        fileFtpTools

methods operating on file object INPUT: fileFtpInfo - file object listfile - list, list of files to download, default empty

Instance Methods [hide private]
 
__init__(self, fileFtpInfo, listfile=[])
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
files2download(self)
chose files to download INPUT: class object OUTPUT: list of files to download
source code
 
compare(self, filename)
compare files names INPUT class object filename - str, filename OUTPUT boolean
source code
 
getlocalDir(self)
get local directory INPUT: class object OUTPUT: path to local directory
source code
 
backupLocalFile(self, path, filename)
create a new file: filename.001 if filename exists INPUT: class object path - str, path to file local filename - str, filename OUTPUT: filename
source code
 
downloadFile(self, path='')
check the version of the file INPUT: object of the fileFtpInfo class path - str, default '.' OUTPUT: state of the file to be downloaded: 0,1,2
source code
 
makeLocalFile(self, path='', binary=True, append=None)
create directory/file in the FTP server location INPUT: object of the fileFTpInfo class path - str, path to file, default empty binary - boolean, default - True append - default None OUTPUT: file on the local machine
source code
 
transferFtpFile(self, connection, path, log, binary=True, callback=None)
transfer file from remote directory to local machine INPUT: connection - class object path on local machine to download files - str binary - boolean, default True callback - default None OUTPUT: transfer file
source code
 
check(self, first, second, third)
counterpart of C x?y:z
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  fullDownload = 0
  notDownload = 2
  partialDownload = 1
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fileFtpInfo, listfile=[])
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)