Skip to main content

Crate fsrenamer

Crate fsrenamer 

Source
Expand description

Refactors names of files and directories in given destination.

Some features require you to set up an instance of the Config,
you can create one either with default values or from given arguments, to do that check Structs - Config section.

USE BACKUP BEFORE USING ON IMPORTANT FILES

Structs§

Config
Holds control values needed for a script’s logic

Constants§

HELP
Loads and holds DOCUMENTATION.md from the crate’s directory
ILLEGAL
An array of ASCII chars, which should not be used in directory and file names
VERSION
Holds current version of the crate

Functions§

change_file_name
Refactors the file/dir’s name in-place using refactor_name.
copy_change_file_name
Copies the given file/dir, the copy gets refactored name. Refactors the file/dir’s name in-place using refactor_name.
refactor_name
Returns refactored copy of String
remove_diacritics
Takes &String and returns copied String where diacritics are replaced by their ASCII variants
run
Refactors file structure from given start.