Skip to main content

Module folder_ancestry

Module folder_ancestry 

Source
Expand description

Ancestor folder-chain resolution for crate::drive::write_gate (issue #1574).

Impure sibling to write_gate — mirrors crate::drive::file_move’s role relative to crate::drive::visibility: this module does the fetching, write_gate does the (pure) classifying.

Structs§

AncestorChain
A target folder’s resolved ancestor chain.

Functions§

resolve_ancestor_chain
Walks start_folder_id → parent → grandparent → … via files.get, stopping at Drive’s root (a folder with no parents).
resolve_decision
Resolves op against start_folder_id’s ancestor chain under rules, walking one files.get at a time and stopping as soon as some depth decides it.
resolve_decision_for_parents
Resolves op against parents (a target’s current parent ids).
resolve_decision_from
resolve_decision, but for a caller that already has the starting folder’s metadata in hand.