By OS. Path. Getsize () to get the file size of 44692, Windows attribute for this value
Through the code and FTP client after downloading the file, after comparing the beyond two files and didn't find any difference,
Excuse me what reason be, or have other way to judge whether the file download success,
CodePudding user response:
If use ASCII mode transfer a text file, the other party server files will be converted to a single '\ n' character in Windows' \ r \ n 'in the system, so it seems the file larger, you can use notepad + + to open the file, view - all display symbols - symbols contrast two files a newline if there is a difference,