Wish. FTP. Send MDTM on copying by F5 (upload into server)
Moderators: Hacker, petermad, Stefan2, white
Wish. FTP. Send MDTM on copying by F5 (upload into server)
If not hard, please add the option to send the last modified time in upload into ftp-server. Just as is done in synchronization.
- ghisler(Author)
- Site Admin
- Posts: 50918
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
vsftpd supports MDTM <timestamp> <name> command (tried it in the command line field), but does not announce it in the FEAT.
I think TC should try MDTM timestamp name if it sees MDTM in list.
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.
- ghisler(Author)
- Site Admin
- Posts: 50918
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50918
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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)
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
https://www.ghisler.com