'save' overwrites all time metadata
All the file creation metadata is overwritten when saving files. Perhaps this is an inherited bug from gedit
.
- Open
gnome-text-editor
& create a new document. Save astest.txt
. - Check the time metadata.
~ stat '/home/rico/Desktop/test2.txt'
File: /home/rico/Desktop/test2.txt
Size: 16 Blocks: 8 IO Block: 4096 regular file
Device: 8,1 Inode: 12718943 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ rico) Gid: ( 1001/ rico)
Access: 2022-05-02 16:16:44.362085253 +0100
Modify: 2022-05-02 16:16:44.362085253 +0100
Change: 2022-05-02 16:16:44.362085253 +0100
Birth: 2022-05-02 16:16:44.362085253 +0100
- Time passes ... Edit & save the file. Then check stat again. All the dates including
Birth
are overwritten.
~ stat '/home/rico/Desktop/test2.txt'
File: /home/rico/Desktop/test2.txt
Size: 41 Blocks: 8 IO Block: 4096 regular file
Device: 8,1 Inode: 12724192 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ rico) Gid: ( 1001/ rico)
Access: 2022-05-02 16:17:32.796635527 +0100
Modify: 2022-05-02 16:17:32.796635527 +0100
Change: 2022-05-02 16:17:32.799968953 +0100
Birth: 2022-05-02 16:17:32.796635527 +0100
This does not always overwrite Birth
with pre-existing files, but seems to consistently do it with files created in gnome-text-editor
.