Bug 411537

Summary: Nanosecond timestamps support
Product: [Frameworks and Libraries] frameworks-kio Reporter: David Korth <gerbilsoft>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: minor CC: kdelibs-bugs, nate
Priority: NOR    
Version: 5.61.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 5.72
Sentry Crash Report:

Description David Korth 2019-09-02 19:07:45 UTC
Currently, copying a file to another directory copies the seconds portion of the mtime, but not the nanoseconds.

STEPS TO REPRODUCE
1. Check the mtime of a file.
2. Copy the file to another directory.

Example file, which will be coped to dest/:

$ ls -l --time-style=full-iso src/
-rw-r--r-- 1 david david 0 2019-09-02 15:05:11.016028432 -0400 file

OBSERVED RESULT

$ ls -l --time-style=full-iso dest/
-rw-r--r-- 1 david david 0 2019-09-02 15:05:11.000000000 -0400 file

EXPECTED RESULT

$ ls -l --time-style=full-iso dest/
-rw-r--r-- 1 david david 0 2019-09-02 15:05:11.016028432 -0400 file

SOFTWARE/OS VERSIONS

KDE Frameworks 5.61.0
Dolphin 19.08.0
Qt 5.12.3
Comment 1 David Faure 2020-06-21 11:50:50 UTC
Git commit e8780b64b62bb3da5ed86911eeeb36155c4cbe52 by David Faure, on behalf of Méven Car.
Committed on 21/06/2020 at 11:50.
Pushed by dfaure into branch 'master'.

File ioslave: set nano sec timestamp when copying
FIXED-IN: 5.72

M  +9    -1    src/ioslaves/file/file_unix.cpp

https://invent.kde.org/frameworks/kio/commit/e8780b64b62bb3da5ed86911eeeb36155c4cbe52