Ftp.GetFileDateTime Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9119)
GetFileDateTime(String)
Returns the modification date and time of the specified remote file.
Declaration
public DateTime GetFileDateTime(string remotePath)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. This cannot be a directory. |
Returns
Type | Description |
---|---|
DateTime | A DateTime structure set to date and time that the specified file was modified. |
Implements
Remarks
Represents FTP MDTM command.
The MDTM command was not defined by the original RFC, but it has been widely supported for a number of years.
Some servers return times in their local time zones, some use GMT.