Skip to main content

apply_edit

Function apply_edit 

Source
pub fn apply_edit(dir: &str, edit: &Edit) -> Result<(usize, usize), String>
Expand description

Write the result of a core edit (trumly_core::ops) into a model folder: changed nodes go where their file already is (a renamed node stays in the same folder), and the files of deleted ids are removed. Returns (written, removed).