How to correctly download files using ftplib so line breaks are added for windows
问题 I have been using a very simple batch file to download millions of files from a UNIX ftp server for years login passwd ascii prompt n cd to the right directory get some_file get another_file cd to the next directory repeat the pattern The nice thing about this was that it was simple and all the files arrived with Window's line breaks so the files were ready to use with my existing programs. Because of some changes in my router I had to write a Python script to pull the files - my first