Name

retrlines

Synopsis

                        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.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.