Skip to content

yenaras/nospace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NoSpace


Description:

Do you use the command line a lot? Are you tired of spaces and/or capitalization in your files that you have to waste precious keystrokes to put quotes around or hold the shift key? NoSpace might be for you!

I built this script as my final project for Harvard's CS50P, Introduction to Programming With Python.


Installation



pip install nospace

Usage


example usage

nospace -p test_directory -c lower -d 1 -o files -s -
usage: nospace [-h] [-d DEPTH] [-c {lower,title,upper}] [-o {both,files,folders}] [-s SEPERATOR] [-p PATH]

rename files in bulk to remove spaces

options:
  -h, --help            show this help message and exit
  -d DEPTH, --depth DEPTH
                        maximum depth of folders to traverse
  -c {lower,title,upper}, --case {lower,title,upper}
                        case of the renamed files and folders (lower, title, or upper)
  -o {both,files,folders}, --objects {both,files,folders}
                        objects to process (files, folders, or both)
  -s SEPERATOR, --seperator SEPERATOR
                        separator to replace spaces with (default is _)
  -p PATH, --path PATH  optional file path to start with

LICENSE

This repo is licensed under the permissive MIT license. You can do whatever you want with it.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages