EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTPClient - Get File Modified Date

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
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 (EldoS Corp.)

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 1537 times

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


Back to top

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

Got it!