przemoc / metastore

Store and restore metadata from a filesystem.
http://software.przemoc.net/#metastore
GNU General Public License v2.0
169 stars 31 forks source link

Do not skip nanoseconds when applying mtime #64

Closed bjohas closed 2 years ago

bjohas commented 2 years ago

Hello!

Using this tool with git, for synchronising a set of files where I'd like to preserve timestamps!

It seems that metastore creates the .metastore with nanoseconds, but during application only applies the timestamp to the nearest second. Therefore, when synchronising back/forth, the nanoseconds are eliminated.

Could the tool be adjusted so that there's a choice over seconds vs. fractional seconds?

przemoc commented 2 years ago

Thank you, @bjohas, for reporting this bug. It has been fixed with latest push (commit a20cb5571cf8). I will appreciate testing and confirming it on your side.