Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Ftp.GetFileDateTimeAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9147)

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
IFtp.GetFileDateTimeAsync(String, Object)
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.

In This Article
  • GetFileDateTimeAsync(String, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies