I'm implementing a .NET utility to sync my local folder with an FTP location. What is the best way to check whether the file is the same or not. I'm using a ,NET FTP Client API called 'edtfptnet'. I found that even though files are the same, the sizes are shown different for exe files. The size returned by the API is the same as the size of the file shown by FileZilla. But it is different from the size obtained by FileInfo.Length. Both these values are different from the size shown in file properties by the windows explorer. Why does this happen? This doesn't happen for text files.
Is there any other way to quickly check whether the file is same or not. The access times are different. The API gives only Last Modified Time, which is different from the last write time.