https://bugs.documentfoundation.org/show_bug.cgi?id=125401
Miklos Vajna <vmik...@collabora.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |NOTOURBUG
--- Comment #14 from Miklos Vajna <vmik...@collabora.com> ---
I got back to this and I'm afraid 'cp -a' can't copy the creation time of the
destination document after all.
Here is what I tried:
1) Save test.odt using Writer.
2) Check creation time:
$ sudo debugfs -R "stat $PWD/test.odt" /dev/mapper/system-root | grep crtime
crtime: 0x5d246d4a:24aeed68 -- Tue Jul 9 12:32:42 2019
3) 'cp -a test.odt test2.odt'
4) Check creation time of test2.odt:
$ sudo debugfs -R "stat $PWD/test2.odt" /dev/mapper/system-root | grep crtime
crtime: 0x5d246eaf:7a4c63cc -- Tue Jul 9 12:38:39 2019
Based on this, I still think we can't do much here -> closing, sorry. The
document has meta.xml BTW, which always contains the creation / modification
time, and that is correct.
If it is discovered that there is some sane API we can use, similar to stat()
and S_ISLNK(), then it would make sense to reopen this.
(Marking as "not our bug", given that this works fine on Windows, it's a
shorcoming of the APIs we have available inside #ifdef UNX, I would say.)
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs