Skip to content

A Python script to rename files in a directory by replacing underscores with spaces.

License

Notifications You must be signed in to change notification settings

Barbodgh/file-renamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rename Files Script

This Python script renames files in a directory by replacing underscores (_) with spaces ( ). It handles errors gracefully and provides clear feedback to the user.

Features

  • 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.

Requirements

  • Python 3.6 or higher.

Usage

  1. Clone the repository:
    git clone https://github.com/your-username/rename-files-script.git  
    cd rename-files-script
  2. Run the script:
    python rename_files.py
  3. Enter the directory path when prompted.

License

This project is licensed under the MIT License. See LICENSE for details.

Contribution

Feel free to fork this repository and submit pull requests for improvements or new features!

About

A Python script to rename files in a directory by replacing underscores with spaces.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages