Hello, can somebody give me some details on the Sync Folder feature in conjunction with Ftp? Namely, what's the reason for the Compare by content option being disabled on many Ftp sites?
I've read the explanation on the wiki but if someone can go into a little bit more detail it'd be great.
I think a difference may be Windows vs Linus hosting?
Folder Sync and FTP
Moderators: Hacker, petermad, Stefan2, white
To compare two files by content, you must either compare them byte by byte or find some other way how to tell if they are the same. First option, even if most reliable, don't go well together with FTP, because it requires downloading the whole file. Second one is to use hashes/crcs and only compare those, which works quite well. You read the local file and compute its hash. Then you tell the server to read the remote file and only return computed hash. Which makes huge difference because hash only has few bytes, even if file itself has several gigabytes in size.
There's just one problem. FTP protocol does not have any official command for computing hashes yet. But because it's useful, few unofficial were created and implemented by various servers. Obviously, as unofficial, only by some of them. The commands should be XCRC, XSHA1, XMD5, MD5 and HASH (the last one might become official FTP command one day, but not yet). If your server supports any of these commands, Compare by content should work. Otherwise you can't use it.
There's just one problem. FTP protocol does not have any official command for computing hashes yet. But because it's useful, few unofficial were created and implemented by various servers. Obviously, as unofficial, only by some of them. The commands should be XCRC, XSHA1, XMD5, MD5 and HASH (the last one might become official FTP command one day, but not yet). If your server supports any of these commands, Compare by content should work. Otherwise you can't use it.
-
- Junior Member
- Posts: 69
- Joined: 2008-09-08, 23:03 UTC
-
- Junior Member
- Posts: 69
- Joined: 2008-09-08, 23:03 UTC