Skip to main content

extract_changed_paths

Function extract_changed_paths 

Source
pub fn extract_changed_paths(events: &[Event]) -> (Vec<String>, Vec<String>)
Expand description

Extract modified and deleted file paths from a slice of events.

Returns (modified_paths, deleted_paths). Both are sorted and deduplicated. If a file is deleted then re-created in the same event slice, it stays in modified only.