fn removed_due(
folder: &Path,
key: &[u8; 32],
sealed: &mut Sealed,
removed_now: Vec<(String, String, u32)>,
current: &BTreeSet<String>,
reading: &BTreeSet<String>,
last: &mut BTreeMap<String, i64>,
days: i64,
early: bool,
now_ms: i64,
)Expand description
The contents of notes and papers this device sealed whose file was taken
out (removed_now: by this device, or read in another device’s record),
each with that record’s writer and round (Sealed::removed); each is due
once every device that counts read past that round (readers: a reader
without notes in the folder read none, and holds it): its last use then
counts as days ago, and blobs::sweep_after takes it out at once, with
its care all the same: never a content used again or named lately, never
one made fresh within days (on a phone under eDrive, which keeps every
sealed file it brought, a content used again past that is made fresh, and
sent there again). Nothing else needs it: a device taking such a file out
keeps it as a copy among its earlier versions (history::keep_moved), and
a device joining, or back after long, reads that it was taken out. Only
when early: every device that counts says it keeps such a file so
(blobs::KEEPING_MOVED); an earlier Sioul keeps it by reference, its
content needed in the folder for history::SEALED_DAYS. Until 17 October
2026 such a content stayed two weeks more (90 days while an older Sioul
counts, as it still does: days), as it does when not early. Forgotten
once swept, or once current again.