ComponentPro UltimateFtp

      Restore file date and time after transfer

      Language Filter: AllSend comments on this topic to ComponentPro

      By default, Ultimate FTP does not synchronize creation, last access and last write time of a file or directory after uploading or downloading. To enable file time synchronization, set the RestoreFileProperties to true.

      // File time will be restored after a transfer.
      client.RestoreFileProperties = true;
      // Upload DOC files.
      client.Upload(@"c:\data\*.doc", "/data");
      Time resolution of the client may differ from the server's. For example, many SFTP servers ignore the millisecond part of file date/time.