timburgess / brackets-ftp-sync

FTP/SFTP for Adobe Brackets
105 stars 19 forks source link

Checking files, not uploading #22

Closed MoorhouseD closed 10 years ago

MoorhouseD commented 10 years ago

I've just tried doing an ftp to my server, the file that's changed locally (in this case index.html) is getting the debug log:

[node-log 3:57:08 PM] stating /web/index.html

without uploading, any thoughts?

* Update * The problem seems to have solved itself, not sure what the cause was.

* Update 2 * This problem has reappeared, it seems as if when it stats a remote file the sizes are too similar to count as altered, therefore it doesn't upload.

timburgess commented 10 years ago

The file comparison is based on filesize. If you have made a change and the file size is exactly the same as the remote file, it won't be uploaded. Rare but it can happen. If it does, add a space somewhere.