Home » Questions » Computers [ Ask a new question ]

When remote copy is overwritten with local copy, file size differs?

When remote copy is overwritten with local copy, file size differs?

When I overwrite a remote file with a local copy, FileZilla successfully transfers and overwrites the file, but I notice that the new remote copy size is few KB lesser than the actual local copy. Why does this happen?

Asked by: Guest | Views: 305
Total answers/comments: 2
Guest [Entry]

"Perhaps this is related to the difference between ""Size"" and ""Size on disk"":

Size is the actual size of the file in bytes.
Size on disk is the actual amount of space being taken up on the disk.

So, if your sector size is 512 bytes and your file is actually 513 bytes, the size on disk will be 1024 bytes because it is occupying two sectors.

Because different O/S or disks may be using different sector sizes, if the reported size is the ""Size on disk"", then the sizes will differ."
Guest [Entry]

If the server is a different OS then that would be why ( eg server = Linux, local = Windows ). Or it could be that some bytes were killed off whether by your doing or your text editor ( whitespace is handled differently by different editors ). That would be a decent guess without actually seeing the diff between them.