title: Compare file after transfer using WinSCP .NET assembly
body: <p>I am using WinSCP .NET assembly to transfer files from Windows to Unix server (mostly .doc files). Sometimes the file is transferred as blank document. But the source has come content in it. I can't go for directory level synchronization because am transferring documents to Unix server from different client machines. I am using the following code:</p>
  
  <pre><code>SessionOptions sessionOptions = new SessionOptions
  {
      Protocol = Protocol.Ftp,
      HostName = cls_appvars.Set_FTP_Host,
      UserName = cls_appvars.Set_FTP_User,
      Password = cls_appvars.Set_FTP_Password,
  };
  
  using (Session session = new Session())
  {                   
      session.Open(sessionOptions);
  
      TransferOptions transferOptions = new TransferOptions();
      transferOptions.TransferMode = TransferMode.Binary;
  
      TransferOperationResult transferResult;
  
      transferResult = session.GetFiles(wordfilepath, downloadwordpath + ".tmp", false, transferOptions);
  
      System.IO.File.Move(downloadwordpath + ".tmp", downloadwordpath);
  
      transferResult.Check();   
  
      foreach (TransferEventArgs transfer in transferResult.Transfers)
      {
          System.IO.File.AppendAllText(path, System.DateTime.Now + "***func_download_file_individual() in scribeapp*** Download succeeded for file " + transfer.FileName + Environment.NewLine);
      }
  
      session.Abort();
      session.Dispose();
  }
  </code></pre>
  
  <p>Is there any way to check on the transferred file is synchronized with the source file?</p>