A Python script to rename files in a folder with random names, create a mapping CSV file, and restore original file names.
- Random File Name Generation: Generates unique random names for files in a specified folder.
- Mapping CSV Creation: Creates a CSV file mapping original file names to random names.
- File Name Restoration: Restores original file names using the mapping CSV.
- Python 3.9.7 or higher
-
Clone this repository to your local machine:
git clone https://github.com/your-username/file-renaming-tool.git cd file-renaming-tool pip install -r requirements.txt
##Usage
###Configure Folder Path
folder_path = r'C:\path\to\your\folder'
###Run the Script
python rename_files.py
###Restore Original File Names
python rename_files.py
Adjust the length of generated random names in generate_random_name
function
Contributions are welcome! Open an issue or submit a pull request.
Feel free to replace placeholders like your-username
and customize paths based on your specific project details.