retrlines() method of FTP class in Python - Pythontic.com
pythontic.com › ftplib › ftpOct 09, 2019 · The method retrlines ()initiates a transfer of file or contents for the commands like RETR <filename.txt>, LIST. Before sending the RETR or LIST commands to the FTP server, the retrlines ()internally sets the transfer mode as ASCII by sending the FTP command Type A to the server. To transfer binary files, the method retrbinary () shall be used.