This Python script renames files in a directory by replacing underscores (_
) with spaces (
). It handles errors gracefully and provides clear feedback to the user.
- Validates if the provided path exists and is a directory.
- Renames files with underscores in their names.
- Skips directories and provides feedback.
- Ensures no file is overwritten by checking for name conflicts.
- Handles errors like invalid paths, permission issues, and OS errors.
- Python 3.6 or higher.
- Clone the repository:
git clone https://github.com/your-username/rename-files-script.git cd rename-files-script
- Run the script:
python rename_files.py
- Enter the directory path when prompted.
This project is licensed under the MIT License. See LICENSE for details.
Feel free to fork this repository and submit pull requests for improvements or new features!