1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! What:
//! The plain values the descriptor-based reader of the folder of saved copies hands around: which directory was seen,
//! what was met below it, how deep a pass goes, and what a failed walk had done.
//! Why:
//! `discarded_store.rs` holds the reader and stays under the file-size limit; these values need nothing from it, and it
//! names them again so every path that used them stays the same.
//!
//! In TS you'd write (pseudocode):
//! ```ts
//! type Identity = { device: number; inode: number; changedSeconds: number; changedNanos: number };
//! ```
/// Which directory a listing saw: the pair that tells a directory from one that took its name later.
/// The files met below a directory, as names relative to it, and the sum of their sizes (links by their own size).
/// The deepest tree a pass enters; a deeper one is kept and reported, because every level holds a descriptor open.
pub const MAX_DEPTH: usize = 128;
/// A walk that failed after meeting `tally` of what it was asked to count or remove.