EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to preserve file date/time stamp on FTP download

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#27605
Posted: 12/09/2013 08:10:57
by Glenn Fishback (Standard support level)
Joined: 12/09/2013
Posts: 2

Is there a way with SecureBlackbox .NET edition v5.2 to preserve the date/time stamp of a file that is being downloaded using the SFTP/FTP/FTPS classes? Currently when I download a file it always gets the current date/time.
#27607
Posted: 12/09/2013 08:16:44
by Eugene Mayevski (EldoS Corp.)

You need to get the directory listing, obtain the remote file date/time and set the file time locally after the file is downloaded. Note that neither SFTP nor FTP have methods to request server's timezone. FTP usually produces listing in server's local timezone. SFTP must use UTC but some buggy servers still report time in local timezone.


Sincerely yours
Eugene Mayevski
#27608
Posted: 12/09/2013 08:19:08
by Glenn Fishback (Standard support level)
Joined: 12/09/2013
Posts: 2

Thanks.

Reply

Statistics

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