Preserve date/time of downloaded files

Moderator: Project members

Post Reply
Message
Author
paperinik
500 Syntax error
Posts: 15
Joined: 2007-07-16 22:09

Preserve date/time of downloaded files

#1 Post by paperinik » 2007-08-16 08:32

Hello,

when will the option

"Preserve date/time of downloaded files"

be available in FZ 3.x beta?


In Fz 2.2.x this option is available:

Edit -> Settings -> File transfer settings ->

|_| "Preserve date/time of downloaded files"


but not in FZ 3.x beta.

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#2 Post by botg » 2007-08-16 11:23

Will be implemented in a future version. No ETA yet.

paperinik
500 Syntax error
Posts: 15
Joined: 2007-07-16 22:09

testing the feature of preserve time when upload a file

#3 Post by paperinik » 2007-10-30 08:10

FZ: nightly 2007-10-30 3.0.2.1

preserving the time when upload a file does not work, because the command
MDTM JJJJMMDDhhmmss filename
is not used (I think).

I attached the protocol of FZ and of FTPvoyager (there all work fine).
After the Filetransfer FZ stops and does nothing more (I think it disconnect )
Below the protocols I attached a little comment, I hope it´s useful.
In the protocols you can see below, I changed the IP-numbers for secure.

Protocols:
---------------------------------------
Filezilla:

Status: Warnung: Der gewählte Port wird üblicherweise von einem anderen Protokoll verwendet.
Status: Auflösen der IP-Adresse für xxx.xxx.xxx
Status: Verbinden mit 111.222.333.444:2100...
Status: Verbindung hergestellt, warte auf Willkommensnachricht...
Antwort: 220 Serv-U FTP Server v6.4 for WinSock ready...
Befehl: AUTH TLS
Antwort: 234 AUTH command OK. Initializing SSL connection.
Status: Starte TLS...
Befehl: USER xxx
Status: Überprüfe Zertifikat...
Status: TLS/SSL Verbindung hergestellt-
Antwort: 331 User name okay, need password.
Befehl: PASS *********
Antwort: 230 User logged in, proceed.
Befehl: SYST
Antwort: 215 UNIX Type: L8
Befehl: FEAT
Antwort: 211-Extension supported
Antwort: AUTH TLS
Antwort: SSCN
Antwort: PBSZ
Antwort: PROT
Antwort: CCC
Antwort: CLNT
Antwort: MDTM
Antwort: MDTM YYYYMMDDHHMMSS[+-TZ];filename
Antwort: SIZE
Antwort: SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG
Antwort: REST STREAM
Antwort: XCRC filename;start;end
Antwort: MODE Z
Antwort: MLST Type*;Size*;Create;Modify*;Win32.ea*;
Antwort: 211 End
Befehl: PBSZ 0
Antwort: 200 PBSZ command OK. Protection buffer size set to 0.
Befehl: PROT P
Antwort: 200 PROT command OK. Using private data connection.
Status: Verbunden
Status: Empfange Dateilisten...
Befehl: PWD
Antwort: 257 "/" is current directory.
Befehl: TYPE I
Antwort: 200 Type set to I.
Befehl: PASV
Antwort: 227 Entering Passive Mode (111,222,333,444,92,66)
Befehl: LIST
Antwort: 150 Opening ASCII mode data connection for /bin/ls.
Antwort: 226 Transfer complete.
Befehl: PASV
Antwort: 227 Entering Passive Mode (111,222,333,444,92,67)
Befehl: LIST -a
Antwort: 150 Opening ASCII mode data connection for /bin/ls.
Antwort: 226 Transfer complete.
Status: Dateiauflistung abgeschlossen
Status: Warnung: Der gewählte Port wird üblicherweise von einem anderen Protokoll verwendet.
Status: Auflösen der IP-Adresse für xxx.xxx.xxx
Status: Verbinden mit 111.222.333.444:2100...
Status: Verbindung hergestellt, warte auf Willkommensnachricht...
Antwort: 220 Serv-U FTP Server v6.4 for WinSock ready...
Befehl: AUTH TLS
Antwort: 234 AUTH command OK. Initializing SSL connection.
Status: Starte TLS...
Befehl: USER xxx
Status: Überprüfe Zertifikat...
Status: TLS/SSL Verbindung hergestellt-
Antwort: 331 User name okay, need password.
Befehl: PASS *********
Antwort: 230 User logged in, proceed.
Befehl: PBSZ 0
Antwort: 200 PBSZ command OK. Protection buffer size set to 0.
Befehl: PROT P
Antwort: 200 PROT command OK. Using private data connection.
Status: Verbunden
Status: Starte Upload von D:\temp\log\test-test.txt
Befehl: CWD /
Antwort: 250 Directory changed to /
Befehl: PWD
Antwort: 257 "/" is current directory.
Befehl: TYPE A
Antwort: 200 Type set to A.
Befehl: PASV
Antwort: 227 Entering Passive Mode (111,222,333,444,92,68)
Befehl: STOR test-test.txt
Antwort: 150 Opening ASCII mode data connection for test-test.txt.
Antwort: 226 Transfer complete.
Status: Dateitransfer erfolgreich

------

FTP-Voyager:

STATUS:> Verbindung mit "xxx.xxx.xxx" über Anschluss 2100.
220 Serv-U FTP Server v6.4 for WinSock ready...
STATUS:> Initialisiere SSL Verbindung, bitte warten...
STATUS:> SSL Bibliothek initialisiert.
KOMMANDO:> AUTH SSL
234 AUTH command OK. Initializing SSL connection.
STATUS:> SSL Verbindungsaufbau mit Server.
STATUS:> SSL Verbindung hergestellt. Alle Transaktionen sind nun abgesichert.
STATUS:> Verbunden. Anmelden...
KOMMANDO:> USER xxx
331 User name okay, need password.
KOMMANDO:> PASS ***********
230 User logged in, proceed.
STATUS:> Login erfolgreich ... angemeldet
KOMMANDO:> SYST
215 UNIX Type: L8
KOMMANDO:> FEAT
211-Extension supported
AUTH TLS
SSCN
PBSZ
PROT
CCC
CLNT
MDTM
MDTM YYYYMMDDHHMMSS[+-TZ];filename
SIZE
SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG
REST STREAM
XCRC filename;start;end
MODE Z
MLST Type*;Size*;Create;Modify*;Win32.ea*;
211 End
KOMMANDO:> CLNT FTP Voyager 14.1.0.3
200 Noted.
KOMMANDO:> PBSZ 0
200 PBSZ command OK. Protection buffer size set to 0.
KOMMANDO:> PROT P
200 PROT command OK. Using private data connection.
STATUS:> Server unterstützt die Wiederaufnahme von Up-/Downloads.
KOMMANDO:> SITE ZONE
210 UTC+60
KOMMANDO:> PWD
257 "/" is current directory.
KOMMANDO:> CWD /
250 Directory changed to /
KOMMANDO:> MODE Z
200 MODE Z ok.
KOMMANDO:> OPTS MODE Z LEVEL 6
200 MODE Z LEVEL set to 6.
KOMMANDO:> PASV
227 Entering Passive Mode (111,222,333,444,92,62)
KOMMANDO:> MLSD
150 Opening BINARY mode data connection for MLSD.
STATUS:> SSL Verbindungsaufbau mit Server.
STATUS:> SSL Datenverbindung hergestellt. Transfers werden abgesichert.
226 Transfer complete.
STATUS:> Komprimierte 316 Bytes zu 161 Bytes (49,05% Komprimierung).
KOMMANDO:> MLST /test-test.txt
550 /test-test.txt: No such file or directory.
STATUS:> Sende: D:\temp\log\test-test.txt -> /test-test.txt
KOMMANDO:> TYPE A
200 Type set to A.
KOMMANDO:> PASV
227 Entering Passive Mode (111,222,333,444,92,65)
KOMMANDO:> STOR test-test.txt
150 Opening ASCII mode data connection for test-test.txt.
STATUS:> SSL Verbindungsaufbau mit Server.
STATUS:> SSL Datenverbindung hergestellt. Transfers werden abgesichert.
226 Transfer complete.
KOMMANDO:> XCRC "/test-test.txt"
250 7D2336D9
STATUS:> XCRC Überprüfung erfolgreich
KOMMANDO:> MDTM 20030619222216 /test-test.txt
253 Date/time changed okay.
STATUS:> 8 Bytes übertragen.
STATUS:> Übertragungszeit: 00:00:00.020; 400,00 Bytes/Sek
KOMMANDO:> MLST /test-test.txt
250-Listing /
Type=file;Size=8;Modify=20030619222216;Win32.ea=0x00002020; test-test.txt
250 End.


------------------------------

I found in an other Forum this info:

MDTM zum Setzen des Datums ist in keiner RFC definiert, sondern nur in einem sogenannten "Draft".
Weil es eben kein Standard ist (aber trotzdem von vielen Servern unterstützt wird),
sendet das Programm den Befehl nur, wenn der Server mit dem FEAT-Befehl folgendes Feature meldet:

MDTM YYYYMMDDHHMMSS filename

Wenn der Server nur MDTM meldet, dann bedeutet das in der Regel,
dass er MDTM nur für das Lesen des Dateidatums unterstützt (RFC-konform).

------------------------------
in english (short):
MDTM YYYYMMDDHHMMSS filename
is a draft, but when a server replies
MDTM YYYYMMDDHHMMSS filename
after a FEAT command, the server will understand the
MDTM YYYYMMDDHHMMSS filename
command.

paperinik
500 Syntax error
Posts: 15
Joined: 2007-07-16 22:09

Draft information

#4 Post by paperinik » 2007-10-30 08:37

Here I found an information about the current draft of MDTM:

http://www.ietf.org/internet-drafts/dra ... fxx-03.txt

I think if a server supports this draft it make sense to use this command for changing the filetime on uploaded files.

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: testing the feature of preserve time when upload a file

#5 Post by botg » 2007-10-30 09:26

Paperinik, please do yourself a favor and actually read the RFCs in question.

MDTM is defined in RFC 3659 and MUST NOT be used to set remote timestamps.
The RFC is perfectly clear on this in its examples which rule out such broken behavior.

Code: Select all

      C> mdtm file6
      S> 213 19990929003355
      C> MdTm 19990929043300 File6
      S> 213 19991005213102
      C> MdTm 19990929043300 file6
      S> 550 19990929043300 file6: No such file or directory.

   [...] but there are
   files named both "file6" and "19990929043300 File6".  The
   modification times of those files were obtained.  There is no file
   named "19990929043300 file6".

paperinik
500 Syntax error
Posts: 15
Joined: 2007-07-16 22:09

preserve time when download/upload a file

#6 Post by paperinik » 2007-11-01 10:08

@botg:

your comment about the upload:
you are right. I will think about the problems told in RFC3659.

download:
It works fine as far as I tested it.
FZ 3.0.3 beta 2007-11-01

jeremyk
500 Command not understood
Posts: 1
Joined: 2008-01-17 02:11
First name: Jeremy
Last name: Keeler

Re: Preserve date/time of downloaded files

#7 Post by jeremyk » 2008-01-17 02:20

Has an ETA been established for this feature yet?

It worked wonderfully before the rewrite and I'm eagerly anticipating it's arrival to v3. I don't want to go back to v2 but I will and wait patiently if need be. I apologize if this has been announced elsewhere.

Thanks!

ps. Thanks for the great work. FileZilla is as crucial to my life as air. Okay, I'm exaggerating, but you get it.

Post Reply