Bug 300211 - Timestamps are not preserved with Syncronizer and SFTP
Summary: Timestamps are not preserved with Syncronizer and SFTP
Status: CONFIRMED
Alias: None
Product: krusader
Classification: Applications
Component: synchronize (show other bugs)
Version: 2.6.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
: 245683 437343 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-17 21:05 UTC by Theo
Modified: 2021-06-12 18:31 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***