kann mir jemand erklären wie
Code: Alles auswählen
retrbinary( command, callback[, maxblocksize[, rest]])
Code: Alles auswählen
self.ftp.retrbinary("RETR " + filename)
danke schonmal im voraus.
gruss prosta
Code: Alles auswählen
retrbinary( command, callback[, maxblocksize[, rest]])
Code: Alles auswählen
self.ftp.retrbinary("RETR " + filename)
Code: Alles auswählen
def callbackTest(self, *args, **kwargs):
print 'Callback', args, kwargs
self.ftp.retrbinary("RETR " + filename, self.callbackTest)
Code: Alles auswählen
retrbinary( command, callback[, maxblocksize[, rest]])
Retrieve a file in binary transfer mode. command should be an
appropriate "RETR" command: 'RETR filename'. The callback
function is called for each block of data received, with a single
string argument giving the data block. The optional maxblocksize
argument specifies the maximum chunk size to read on the
low-level socket object created to do the actual transfer (which will
also be the largest size of the data blocks passed to callback). A
reasonable default is chosen. rest means the same thing as in the
transfercmd() method.