use std::path::PathBuf; fn get_file_name(file_path: &String) -> String { let file = PathBuf::from(file_path); let file_name = file.file_name().unwrap() .to_string_lossy() .into_owned(); file_name } to ...
The script expects as input, the reference folder path and a text file containing the words to be replaced and the corresponding new word in "," separated pair in each line. The tool replaces the ...