Retrieving the timestamp information

Top  Previous  Next

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

 

Setting your remote directory