Synchronize directories - FTP - ignore fractions of a second

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
HeRo
Junior Member
Junior Member
Posts: 38
Joined: 2011-01-19, 19:13 UTC
Contact:

Synchronize directories - FTP - ignore fractions of a second

Post by *HeRo »

Hi!

I have just started using an FTP server as an online backup, so I choose 'Preserve file dates' when I copy to the FTP-server, but the hundredths of a second are truncated in the time-stamp on the server, so I have to use "Ignore date" anyway when I want to Synchronize Directories, and that's a pity. It would be nice, if I could choose to only ignore the fractions of a second, and not the whole date and time.

Thank you,
and best regards,
HeRo
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, HeRo.

It would be helpful to mention that there is a previous thread created by you, FTP - 'Preserve file dates' - but not hundredths of a second.
It should be mentioned that in this previous thread Sob explained that T.C. did not even try to pass timetamps that are more precise than hh24:mi:ss. No fractions of seconds were passed by T.C.
What your FTP server does is a different thing and beyond the control of any FTP client software, including T.C.

Kind regards,
Karl
HeRo
Junior Member
Junior Member
Posts: 38
Joined: 2011-01-19, 19:13 UTC
Contact:

Post by *HeRo »

karlchen wrote:Hello, HeRo.

It would be helpful to mention that there is a previous thread created by you, FTP - 'Preserve file dates' - but not hundredths of a second.
It should be mentioned that in this previous thread Sob explained that T.C. did not even try to pass timetamps that are more precise than hh24:mi:ss. No fractions of seconds were passed by T.C.
What your FTP server does is a different thing and beyond the control of any FTP client software, including T.C.

Kind regards,
Karl
Hi Karl

Thank you for mentioning the other thread!
Beside that I presume that you think the info you are giving is supporting that the option I am suggesting is quite relevant.

- HeRo
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, HeRo.

I understand that you wish to find a solution for the problem which you reported in the other thread.
As so far the source of the problem has not been determined with absolute certainty, it is questionable whether turning a problem report into a feature request is going to help solve the problem.

Kind regards,
Karl
HeRo
Junior Member
Junior Member
Posts: 38
Joined: 2011-01-19, 19:13 UTC
Contact:

Post by *HeRo »

OK.

Is there something I can do, logging(?), to generate information, which could determine what the problem is?

- HeRo
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

Showing some log wouldn't hurt.

1) Upload some file. Double click the log (right to Disconnect button) and it will open whole log in Lister. Find where your file was uploaded (STOR command), and the following command which sets the timestamp (MFMT for example) and copy that part here.
2) Refresh the FTP panel (F2), then right click your file, select Properties and raw directory listing received from server will open in Lister. Find the line with your file and copy it here.
3) Look at the original local file and write the modification time.
4) Write the timezone you have set in Windows.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Showing some log wouldn't hurt.
I think a list of the raw file list data is better info in this case - to see how the FTP server sends the file date etc.

To get a raw list, simply press Alt+Enter while the cursur is in an FTP panel.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
HeRo
Junior Member
Junior Member
Posts: 38
Joined: 2011-01-19, 19:13 UTC
Contact:

Post by *HeRo »

petermad wrote: I think a list of the raw file list data is better info in this case - to see how the FTP server sends the file date etc.

To get a raw list, simply press Alt+Enter while the cursur is in an FTP panel.
OK! Here is a dir. on the FTP server:

drwxr-xr-x 3 webkeepn webkeepn 4096 Jan 23 06:32 .
drwxr-xr-x 23 webkeepn webkeepn 4096 Jan 25 09:44 ..
-rw-r--r-- 1 webkeepn webkeepn 425 Sep 20 07:47 I svømmehal.txt
drwxr-xr-x 2 webkeepn webkeepn 4096 Jan 23 06:32 Svømmebriller
-rw-r--r-- 1 webkeepn webkeepn 890 Apr 9 2010 Svømmehaller i Kbh.txt
-rw-r--r-- 1 webkeepn webkeepn 97792 Sep 20 07:09 banefordeling-frankrigsgade-2010-2011.xls
-rw-r--r-- 1 webkeepn webkeepn 69632 Sep 20 03:37 frankrigsgade-baneoversigt-2009-2010.xls
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

This listing is produced by LIST command and it's completely hopeless. You can see it yourself, for example "Svømmehaller i Kbh.txt" has just "Apr 9 2010". Doing some precise synchronization with that is impossible. On top of that, when the time is present, it's not clearly defined what timezone it uses.
The best you can do is to try to solve your problem with MSLD described in your other thread. LIST has no future.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Yes - not much info about the time when not using MLSD

Without MLSD (LIST):

Code: Select all

-rw-r--r--    1 3130     65534       16149 Dec 29  2004 email.gif
-rw-r--r--    1 3130     65534       39513 Jan 15 16:15 email1.htm
Using MLSD:

Code: Select all

type=file;size=16149;modify=20041229120824;UNIX.mode=0644;UNIX.uid=3130;UNIX.gid=65534;unique=400ff02g2a794a7; email.gif
type=file;size=39513;modify=20110115151552;UNIX.mode=0644;UNIX.uid=3130;UNIX.gid=65534;unique=400ff02g2a794a8; email1.htm
Note, how only minutes, not seconds are used with LIST, and that files not from this year doesn't even have a time stamp, only the date.

MLSD show the full time stamp in 1 second intervals.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply