EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTPClient - Get File Modified Date

Posted: 08/20/2007 13:42:53
by Frank Davis (Standard support level)
Joined: 08/15/2007
Posts: 6

I'm trying to read a file's modified date that sits on the server
Here is my code so far:
Dim Attributes As TElSftpFileAttributes = New TElSftpFileAttributes()
SFTPSFTPClient.RequestAttributes(currentDir & "\" & FtpFileInfo.Name, True, Attributes)
str = Attributes.MTime

It returns a date of 1972. which I know is not right. Am I doing something wrong? Is there anotehr way to do this?
Posted: 08/20/2007 14:13:10
by Eugene Mayevski (Team)

The server doesn't necessarily report all available attributes. You can find which attributes are really included from Attributes.IncludedAttributes property.

Sincerely yours
Eugene Mayevski



Topic viewed 1620 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!