Repository navigation
Rule out a manifest's root that is not on this device - #23
Conversation
An archive kept on another machine never reaches the devices its workspace travels to, so the walk never meets its root and the list said nothing about it. A copy put there later would then be handed to whatever syncs the folder, though the manifest pins every file that belongs there. The root is now ruled out as claimed all the same, named alone (/photo) so that it matches a link or a directory. Found from the reachable nodes named by the <dir>.<ext> convention, so a page costs no probe.
ReviewReviewed head
Validation: |
… once Review on #23: the absent root was guessed from the node's name, so a node renamed away from its archive (album.yaml, root: photos/) left the archive unruled; and the record store was read as a candidate node, so a 9.5 MB store was parsed twice. The nodes are now found among the reachable documents small enough to be one, and a larger one only when no node names it as its store. Each node's declared root is resolved through manifest_of, one parse, inside the list's own read scope.
|
Both points taken, in c6481f9:
The module doc now says this is the one rule for a path not on disk. |
prov ignoreruled a manifest's root out only when its walk met it. On a device the archive never reaches (one held on another machine, prov #22), the root is absent, so the list said nothing about it, and a copy put there later was handed to whatever syncs the folder.The root is now ruled out as claimed whether or not it is present, named alone (
/photo) so that it matches a link or a directory. It is found from the reachable nodes named by the<dir>.<ext>convention, so a page costs no probe.prov/src/workspace/ignore.rs:absent_roots, run after the walk, skipping any root a rule already covers.a_claimed_archive_not_on_this_device_is_ruled_all_the_same.docs/manifests.md§3.5: one bullet.On the Harris library, a copy without the share now lists
/photo(claimed), as the NAS's own copy does. All prov tests pass, and clippy and fmt are clean.