A robust and safe command-line utility to rename multiple files at once. Designed with a "Safety First" approach for professionals managing large datasets, photos, or documents.
- Dry Run Mode: Preview all changes before they are actually applied to your files.
- Collision Protection: Automatically skips renaming if the target filename already exists to prevent data loss.
- Extension Filtering: Choose to rename only specific file types (e.g., only
.jpgor.pdf). - Flexible Logic: Add prefixes, suffixes, or perform text replacement within filenames.
- Clone the repository to your local machine.
- Open
renamer.py. - Configure the
rename_filesfunction parameters in theif __name__ == "__main__":block:folder_path: The directory containing your files.prefix/suffix: Text to add at the start or end.target_ext: Filter by extension (e.g., ".txt").dry_run: Set toTruefor testing,Falsefor execution.
- Run the script:
python renamer.py
This project is licensed under the MIT License. See the LICENSE file for details.
Developed by Emanuele Tarchi | Automation Specialist Portfolio