Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

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.

share|improve this answer
    
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? –  Traveling Tech Guy Apr 17 '12 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. –  Oliver Salzburg Apr 17 '12 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 :) –  Traveling Tech Guy Apr 17 '12 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. –  MemeDeveloper Jan 31 '13 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. –  MemeDeveloper Jan 31 '13 at 19:23

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

https://forum.filezilla-project.org/viewtopic.php?f=1&t=26648

share|improve this answer
1  
can you explain more? –  Sickest Mar 14 at 17:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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