PowerTCP FTP for .NET
SetModificationTime Method



Relative or absolute path to the file.
The DateTime to use for the new modification time.
Sets the specified file's modified time to the specified DateTime.
Syntax
Public Function SetModificationTime( _
   ByVal path As String, _
   ByVal time As Date _
) As Response
Dim instance As Ftp
Dim path As String
Dim time As Date
Dim value As Response
 
value = instance.SetModificationTime(path, time)
public Response SetModificationTime( 
   string path,
   DateTime time
)
public:
Response^ SetModificationTime( 
   String^ path,
   DateTime time
) 

Parameters

path
Relative or absolute path to the file.
time
The DateTime to use for the new modification time.

Return Value

Exceptions
ExceptionDescription
FtpProtocolExceptionThe command did not succeed.
Remarks
Sends the "MFMT" command, or "MDTM" if the server does not advertise support for MFMT.
See Also

Reference

Ftp Class
Ftp Members


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic