Returns the file modification time as DateTime object.

Namespace: Jscape.Sftp
Assembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0

Syntax

C#
public DateTime GetFileTimestamp(
	string pathname
)
Visual Basic
Public Function GetFileTimestamp ( _
	pathname As String _
) As DateTime
Visual C++
public:
DateTime GetFileTimestamp(
	String^ pathname
)

Parameters

pathname
Type: System..::..String
the target pathname

Return Value

the file modification time

Exceptions

ExceptionCondition
Jscape.Sftp..::..SftpExceptionif protocol error occurs

See Also