livery.toolroom.store._fingerprint¶
livery.toolroom.store._fingerprint ¶
A stat fingerprint of files: whether anything moved, without reading them.
Functions:
| Name | Description |
|---|---|
tree_fingerprint |
The fingerprint of paths, each a file or a directory walked whole. |
tree_fingerprint ¶
The fingerprint of paths, each a file or a directory walked whole.
Every file contributes its path under the argument that named it, its size and its modification time in nanoseconds; a path that does not exist contributes its absence, and the arguments themselves contribute their spelling. Stats alone are read, so a build can ask whether anything moved before it loads a byte. A touched file with the same bytes reads as moved, which costs one rebuild and never a stale one.