edtFTPnet/Express - Class Reference

FTPConnection.SetLastWriteTime Method 

Set modification time for a remote file.

public virtual void SetLastWriteTime(
   string remoteFile,
   DateTime lastWriteTime
);

Parameters

remoteFile
Name of remote file.
lastWriteTime
Desired write-time (given in local timezone).

Remarks

Although times are passed to the server with second precision, some servers may ignore seconds and only provide minute precision. This method therefore returns the actual modification-time that the file was set to. May not be supported by some FTP servers.

See Also

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace