Skip to main content

Module absorb

Module absorb 

Source
Expand description

Drift detection — classify the relationship between a source file/dir and its target counterpart.

Used by:

  • yui status (display the classification)
  • yui apply (decide what to do: skip / relink / auto-absorb / ask)

§Decision matrix

target stateclassify result
resolves to the same inode/file-id as sourceInSync
different inode but identical contentRelinkOnly
different + content differs + target.mtime > source’sAutoAbsorb
different + content differs + source.mtime ≥ target’sNeedsConfirm
target missingRestore

“Same inode” is computed via the same-file crate, which transparently follows symlinks, hardlinks, and junctions on Windows.

Enums§

AbsorbDecision

Functions§

classify