This program is used to rename all files in a directory (including sub-directories) to match a regex provided by the user. This regex can included a number of file specific attributes (discussed in
the features section) as well as strings.
There is an option to rename files in subfolders as well as files in the root directory, this will rename all files contained in any subfolders inside the root directory.
Files can be renamed accoring to a regular expression. These expressions can contain a number of attributes of the file being renamed or the directory it is located in. These include:
- /d{...} - all directory names upto the root directory.
- /d{n} - the nth directory above the file (n is an integer)
Note: if directory dosent exist then this will be blank in the filename. - /date{curr} - todays date in current timezone format
- /date{created} - the date the file was created
- /date{modified} - the date the file was last modified
- "sometext" - a string of text
The program will check your regex input in real time and tell you of any errors. It will also provide you with an example of what a renamed file will look like based on an example file.
Operations can be performed on all of the regex identifiers to modify the results. These include:
- .replace("str1","str") - replaces all instances of the first string with the second.
- .toUpperCase - converts the identifier to upper case.
- .toLowerCase - converts the identifier to lower case.
- .trim - removes leading and trailing white-space
An example:/date{created}.replace("-","_")
This will replace any "-" in the date string with underscores.
If there are any suggestions about additions that could be made to the program please message me about them either here or following the contact links below.
Personal website
(Contact information can be found here)