Retrieving the timestamp information |
You can retrieve the date a file was last modified using the GetFileTimeStamp method. All filenames are relative to your current remote directory.
Example
[C#]
// get last modified date of image.gif
Date dt = myFtp.GetFileTimeStamp("image.gif");
[Visual Basic]
' get last modified date of image.gif
Dim dt As Date = myFtp.GetFileTimeStamp("image.gif")
Note
The GetFileTimeStamp method utilizes a command that is supported by a majority of FTP servers however is not officially recognized by RFC 959 so may not be supported on some FTP servers.
See also