Home > other >  There is an error in the size of the download files from the FTP server
There is an error in the size of the download files from the FTP server

Time:04-16

Want to compare the size of the file way to determine whether the FTP download success, but through FTP server access to the file size of 44764
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,
  • Related