rename-dirs

A python script to rename multiple directories in a uniform format.


Keywords
python, windows, macos, linux, command-line, filesystem, rename-files, cli-utility, cli-tool, rename-folders, rename-directories
License
MIT
Install
pip install rename-dirs==2.0.0

Documentation

Rename Dirs

A python script to rename multiple directories to lowercase words with underscore separators.

Why?

I like to keep my PC's folder structure neat and uniform but, during intense hackathons, i mess up my project's folder name format. Automating the renaming process made my life a little easier.

Format

Example File.txt -> example_file.txt

Installation

pip install rename-dirs

Example

  • After installing, run rename-dirs
  • Enter directory path:

dir_path

  • Enter Y/n for each file/folder:

yes_or_no

  • Initial folder structure:

inital_structure

  • Final folder structure:

final_structure