Bug 300211

Summary: Timestamps are not preserved with Syncronizer and SFTP
Product: [Applications] krusader Reporter: Theo <alpha0x89>
Component: synchronizeAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: aba, alex.bikadorov, gesti55, krusader-bugs-null, support
Priority: NOR    
Version: 2.6.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=206921
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Theo 2012-05-17 21:05:49 UTC
When uploading files over an SFTP connection using the "Synchronize Directories" tool of Krusader 2.0.0, the timestamps are not preserved. One would expect them to be preserved, because they are when copying files directly from one of the panels (local to SFTP).

Reproducible: Always

Steps to Reproduce:
1. Open a SFTP connection in one of the panels
2. Start Tools/Syncronize Directories
3. Choose some file to be copied from the local directory to the remote directory
Actual Results:  
Copied files have timestamps of the current time.

Expected Results:  
A copied file should have the timestamp of the local file.
Comment 1 Szabolcs Szilágyi 2012-10-31 16:08:28 UTC
Same thing with normal FTP connections.
Krusader won't preserve timestamps copying to and from FTP.
Comment 2 Jekyll Wu 2012-11-08 04:47:29 UTC
reproduciable using 2.4.0-beta3
Comment 3 Theo 2013-01-07 00:28:00 UTC
Things have taken a turn for the worse. After an update from KDE 4.6 to 4.8 time stamps are no longer preserved even when copying files over SFTP from a panel. Downgrading only Krusader to the KDE 4.6  version (from the openSUSE 11.4 repository) doesn't fix it, so I guess the problem is the KIO slave (to be found in the openSUSE package kdebase4-runtime 4.8.5). 

See also:
https://bugs.kde.org/show_bug.cgi?id=55804
https://bugs.launchpad.net/ubuntu/+source/kde4libs/+bug/191472
Comment 4 Alex Bikadorov 2017-05-18 13:49:50 UTC
Confirmed. After a quick look I could not figure out why files are considered equal although the have different timestamps (which is actually good, otherwise files folders would not be equal after a sync).

Note for myself: with KIO::FileCopyJob::setModificationTime() this can probably be easily fixed. https://api.kde.org/frameworks/kio/html/classKIO_1_1FileCopyJob.html#a28f12603e4db5e7adc1aff5b2acc0f9f
Comment 5 Alex Bikadorov 2017-05-18 20:06:20 UTC
*** Bug 245683 has been marked as a duplicate of this bug. ***
Comment 6 Toni Asensi Esteve 2021-06-12 18:31:52 UTC
*** Bug 437343 has been marked as a duplicate of this bug. ***