EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTPClient - Get File Modified Date

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#3599
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?
#3600
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

Reply

Statistics

Topic viewed 1475 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!