Home » Questions » Computers [ Ask a new question ]

ftp server file size difference vs actual file size

ftp server file size difference vs actual file size

I am connecting to an FTP server to download some gzipped files and I noticed something a bit disconcerting about the SIZE command and my google-fu has failed me.

Asked by: Guest | Views: 29
Total answers/comments: 1
Guest [Entry]

"Have you switched ftp into binary mode? ftp might be calculating the size with line-endings changed?

2524751 / 2515727 * 255 = 255.91469384396638

So it looks like every 255 bytes in the original gained 0.9 bytes extra - just enough for a compressed file to have \n converted to \r\n."