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

Ftp.SetFileDateTimeAsync Method

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

SetFileDateTimeAsync(String, DateTime, Object)

Begins asynchronous SetFileDateTime operation. Sets the modification date and time of the specified remote file. Not all FTP servers support this!

Declaration
public Task SetFileDateTimeAsync(string remotePath, DateTime newDateTime, object state = null)
Parameters
Type Name Description
String remotePath

The path of the remote file.

DateTime newDateTime

The date and time to set.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task
Implements
IFtp.SetFileDateTimeAsync(String, DateTime, Object)
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.

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