[−][src]Function nflz::rename_all
pub fn rename_all(
dir: &Path,
rn_map: &BTreeMap<ParsedFilename, String>,
pf_list: &Vec<ParsedFilename>
) -> Result<(), NFLZError>
Renames all files according to the mappings in the rename map
if can_rename_all
returns Ok
.
dir
Directory where all replacements happen. Only needed to make some checks before the actual renaming starts.rn_map
Map with the mappings from old to new names.pf_list
List with parsed filenames. Only needed to make some checks before the actual renaming starts.