Skip to main content

sort_key

Function sort_key 

Source
pub fn sort_key(path: &str, is_dir: bool) -> Vec<(u8, Vec<u8>)>
Expand description

rsync’s file-list order (f_name_cmp at protocol ≥ 29) as a sort key: “.” first; within a directory, non-directories by bytes, then directories by name + “/”, each followed by its subtree.