pub fn folder_cycle<I, F>( child: &I, new_parent: Option<&I>, parent_of: F, ) -> boolwhere I: Eq + Hash + Clone, F: FnMut(&I) -> Option<I>,
If assigning child’s parent to new_parent would cycle, the application should move the later-HLC folder to the root instead.
child
new_parent