March 2003
Intermediate to advanced
656 pages
39h 30m
English
retrlines
f.retrlines(command,callback=None)
Retrieves data in text mode.
command is a string with an appropriate
FTP command, typically 'RETR
filename' or
'LIST‘. callback is a
callable that retrlines calls for each line of
text returned, passing the line of text, a string, as the only
argument (without the end-of-line marker). When
callback is None,
retrlines writes the lines of text to
sys.stdout.
Read now
Unlock full access