[][src]Function nflz::compute_rename_map

pub fn compute_rename_map(
    pf_list: &Vec<ParsedFilename>
) -> (BTreeMap<ParsedFilename, String>, Vec<String>)

Compute the rename map. This is a mapping from original file name to the name it would rename the file in the next step. It avoids unnecessary renames (oldname == newname).


Return value

It returns a tuple with the rename map (old name to new name) and files that do not need a rename.