Expand description
Skip-if-unchanged cache helpers: content-hash markers, a cross-process build lock, and directory utilities.
Functions§
- clear_
directory - Remove and recreate a directory.
- dir_
has_ content - Whether a directory exists and contains at least one entry.
- file_
hash - Compute a fast, position-weighted hash of a file’s contents.
- marker_
matches - Whether a marker file exists and its contents equal
expected_hash. - with_
lock - Run
fwhile holding an exclusive cross-process lock onlock_path. - write_
marker - Write
hashto a marker file.