Wish. FTP. Send MDTM on copying by F5 (upload into server)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
AlexKniga
Junior Member
Junior Member
Posts: 11
Joined: 2010-03-24, 10:57 UTC

Wish. FTP. Send MDTM on copying by F5 (upload into server)

Post by *AlexKniga »

If not hard, please add the option to send the last modified time in upload into ftp-server. Just as is done in synchronization.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50918
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 7.55 beta supports that now! However, the option is only offered to the user when the server reports (in FEAT or HELP SITE command) to support one of the 3 time upload commands (SITE UTIME, MFMT or MDTM timestamp name).
Author of Total Commander
https://www.ghisler.com
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

Post by *HAL 9000 »

vsftpd supports MDTM <timestamp> <name> command (tried it in the command line field), but does not announce it in the FEAT.

Code: Select all

...
220 (vsFTPd 2.0.5)
USER joe
331 Please specify the password.
PASS ***********
230 Login successful.
SYST
215 UNIX Type: L8
FEAT
211-Features:
 EPRT
 EPSV
 MDTM
 PASV
 REST STREAM
 SIZE
 TVFS
211 End
HELP SITE
214-The following commands are recognized.
 ABOR ACCT ALLO APPE CDUP CWD  DELE EPRT EPSV FEAT HELP LIST MDTM MKD
 MODE NLST NOOP OPTS PASS PASV PORT PWD  QUIT REIN REST RETR RMD  RNFR
 RNTO SITE SIZE SMNT STAT STOR STOU STRU SYST TYPE USER XCUP XCWD XMKD
 XPWD XRMD
214 Help OK.
OPTS UTF8 ON
501 Option not understood.
...
MDTM 20100406214600 My Sample File.xls
213 File modification time set.
I think TC should try MDTM timestamp name if it sees MDTM in list.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50918
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Since "MDTM timestamp name" is in violation of RFC 3659, TC will use it only if the server annouces that it supports it. However, TC will try MDTM in sync if you check the option there.
Author of Total Commander
https://www.ghisler.com
Serj14
Junior Member
Junior Member
Posts: 7
Joined: 2016-01-27, 11:41 UTC

Post by *Serj14 »

ghisler(Author) wrote:....TC will use it only if the server annouces that it supports it....
Append this option as an advanced parameter, please.
For instance:
[ ] auto
[ ] SITE UTIME
[X] MFMT
[ ] MDTM

I can provide you an ftp account (vsFTPd 3.0.2) to test this. If you need it.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50918
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You can enable MFMT manually if the server doesn't announce it.

Please add the following string to the file wcx_ftp.ini, section [General]:
SpecialFlags=8192

This will enable it for ALL servers. To enable it just for a specific server, add the line
SpecialFlags=8192
just to the section of that server.

Here is the relevant part from the help file, wcx_ftp.ini:

SpecialFlags=0
Sum of the following options:
1: force implicit ssl (no clear text connection)
2: force explicit ssl
4: force TLS authentication
8: force SSL23 authentication
16: detailed log for ftp connections in background
32: Do not test whether files have been uploaded completely (with SIZE command)
64: Do not verify the downloaded file size (with SIZE command) if the downloaded size differs from the size reported in the file listing
128: Do not re-use sessions for SSL data connections (via SSL_copy_session_id)
256: Do not send commands from "Send commands" field in background thread
512: Send MLSD -la to request hidden files (not supported by most servers)
1024: Do not convert local address returned by PASV command to server address
2048: Duplicate all characters with code #255 for servers expecting Telnet-style escape characters
4096: Use MDTM command to set remote timestamp
8192: Use MFMT command
12288: Use SITE UTIME (sum of 4096 and 8192)
Author of Total Commander
https://www.ghisler.com
Serj14
Junior Member
Junior Member
Posts: 7
Joined: 2016-01-27, 11:41 UTC

Post by *Serj14 »

ghisler(Author) wrote:You can enable MFMT manually if the server doesn't announce it.
....
:!: 4096: Use MDTM command to set remote timestamp
....
Thank you! :)
Post Reply