Ftp.SetFileDateTime Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
SetFileDateTime(String, DateTime)
Sets the modification date and time of the specified remote file. Not all FTP servers support this!
Declaration
public void SetFileDateTime(string remotePath, DateTime newDateTime)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. |
DateTime | newDateTime | The date and time to set. |
Implements
Remarks
Support for setting modification date and time, either using MFMT or MDTM command, is not as widespread as retrieving it. This method will fail on servers that support neither of these commands.