Ftp.GetFileDateTimeAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
GetFileDateTimeAsync(String, Object)
Begins asynchronous GetFileDateTime operation. Returns the modification date and time of the specified remote file.
Declaration
public Task<DateTime> GetFileDateTimeAsync(string remotePath, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. This cannot be a directory. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<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.