EldoS | Feel safer!

Software components for data protection, secure storage and transfer

FTPS - File Modification time?

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#28104
Posted: 01/22/2014 22:39:47
by Vincent Parrett (Standard support level)
Joined: 01/17/2008
Posts: 20

Is there a way to preserve or set the file modification time using SBB FTPS Client? It seems you can do it for SFTP, and I can do it with indy FTP, but cannot find a way with SBB for FTPS.

https://www.eldos.com/forum/read.php?FID=7&TID=956&MID=5126&sphrase_id=452703#message5126
#28106
Posted: 01/23/2014 00:52:57
by Eugene Mayevski (EldoS Corp.)

I don't remember any standard way in FTP to change the modification time on the server. Can you please point me at how (with what command or option) Indy does this? Maybe we'll be able to do the same, or maybe it's possible with SendCmd method where you can send a custom command.


Sincerely yours
Eugene Mayevski
#28133
Posted: 01/25/2014 20:09:48
by Vincent Parrett (Standard support level)
Joined: 01/17/2008
Posts: 20

It's using the MDTM & MFMT commands - see TIdFTP.SetModTime
#28134
Posted: 01/26/2014 02:17:53
by Eugene Mayevski (EldoS Corp.)

Thank you very much. I knew about MDTM as it is defined in the RFC yet it is used to retrieve the value from the server.

MFMT command is not defined in any standard. It seems to be discussed in certain draft, but not generally accepted. Moreover, the draft itself has expired in '2009, almost 5 years ago.

With TElSimpleFTPSClient component you can use SendCmd method to send custom commands such as MFMT.


Sincerely yours
Eugene Mayevski
#28135
Posted: 01/26/2014 19:38:25
by Vincent Parrett (Standard support level)
Joined: 01/17/2008
Posts: 20

I know it's not standard, but it seems to be in use by many clients. When our customers have problems with our ftp support, they always say 'but it works in filezilla'... Might be worth adding support for these common extensions.
#28136
Posted: 01/26/2014 23:00:11
by Eugene Mayevski (EldoS Corp.)

As said, the simplest way is to use SendCmd command for any command that is not explicitly supported by the component.


Sincerely yours
Eugene Mayevski
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

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