syncthing/lib/scanner
Jakob Borg ea87bcefd6 lib/protocol, lib/model: Implement high precision time stamps (fixes #3305)
This adds a new nanoseconds field to the FileInfo, populates it during
scans and sets the non-truncated time in Chtimes calls.

The actual file modification time is defined as modified_s seconds +
modified_ns nanoseconds. It's expected that the modified_ns field is <=
1e9 (that is, all whole seconds should go in the modified_s field) but
not really enforced. Given that it's an int32 the timestamp can be
adjusted += ~2.9 seconds by the modified_ns field...

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3431
2016-08-06 13:05:59 +00:00
..
testdata mv internal lib 2015-08-09 09:35:26 +02:00
.gitignore Add benchmark of HashFile 2015-10-27 09:30:34 +01:00
blockqueue.go lib/scanner: Recheck file size and modification time after hashing (ref #3440) 2016-07-26 08:51:39 +00:00
blocks_test.go lib/scanner: Recheck file size and modification time after hashing (ref #3440) 2016-07-26 08:51:39 +00:00
blocks.go lib/scanner: Recheck file size and modification time after hashing (ref #3440) 2016-07-26 08:51:39 +00:00
debug.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
doc.go mv internal lib 2015-08-09 09:35:26 +02:00
walk_test.go lib/scanner: Correctly scan symlinks (fixes #3445) 2016-07-26 11:55:25 +00:00
walk.go lib/protocol, lib/model: Implement high precision time stamps (fixes #3305) 2016-08-06 13:05:59 +00:00