Retrieving file timestamp information

Top  Previous  Next

You can retrieve the date a file was last modified using the Sftp.GetFileTimestamp method which returns a System.DateTime instance.

 

Example

 

[C#]

 

// get date time for remote file

DateTime dt = sftp.GetFileTimestamp("web.xml");

 

[VB]

 

' get date time for remote file

Dim dt As DateTime = sftp.GetFileTimestamp("web.xml")