I'm developing a web application on a Mac and uploading to a Windows hosted server.
I used to use Filezilla's directory comparison feature to see which files in a directory need to be uploaded to the server. But now, certain files are always shown in red (different).
Worst example: if I upload a brand new file, it is immediately marked as different than itself.

I assume this has something to do with the different ways Windos and Mac OS calculate file sizes - but I only experience this with certain file types: html and text. PHP files (even though they are essentially a text file), binary, images and PDFs all report the correct size.

What is it in html files that gets their size misreported? Should I switch to using modification time as my comparison criteria?

2 Answers 2


Set your Default transfer type to Binary and this shouldn't happen again. enter image description here

The problem is that the line endings are converted from UNIX to Windows line terminators. Thus the size difference.

  • So why doesn't the same happen with PHP files, that are essentially text as well? Are there any side effects to selecting Binary transfer over auto? Apr 17, 2012 at 17:27
  • Good question. Especially since they're also in the list for files to treat as text. Unless you removed the php entry, which would explain the behavior. Apr 17, 2012 at 17:35
  • Not removed - PHP appears as ASCII. Still not sure about the Binary transfer - I was taught to use ASC or BIN appropriately in the old command-line FTP days :) Apr 17, 2012 at 17:56
  • with the php files (a total guess) maybe its about what characters your php editor is using. i.e. If your editor on the mac is actually saving the file with Windows linebreaks "\r\n" but automagically converting them when opening the file... then won't be a difference? (or vice versa) maybe? If you really care open up the php files in something line notepad++ and "view > all characters" to see what's going on with linebreaks. Jan 31, 2013 at 19:22
  • I know visual studio often asks me if I want to convert the linebreask for files such as .js so maybe your php editor is doing same without asking. Jan 31, 2013 at 19:23

Divide by 1024 to see if that accounts for the difference. Windows uses 1024 not 1000 to count kB. Discussion here:



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.