Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chrisphu/basic-filename-linter

Python script to rename files to: 1. be all lowercase, and 2. have spaces and underscores replaced with hyphens
https://github.com/chrisphu/basic-filename-linter

lint linter python python3

Last synced: about 1 month ago
JSON representation

Python script to rename files to: 1. be all lowercase, and 2. have spaces and underscores replaced with hyphens

Awesome Lists containing this project

README

        

# basic-filename-linter

The [`basic-filename-linter.py`](./basic-filename-linter.py) Python script renames files within a given directory to:
1. Be all lowercase
2. Have spaces and underscores replaced with hyphens

## How to use

>[!WARNING]
>Running this will immediately begin the renaming process. Ensure you supply the correct desired directory path.

Run `py basic-filename-linter.py {directory path}`.

## This is very limited – any plans to upgrade?

No. This was just a quick thing I wrote to get some personal files a bit more organized. [ls-lint](https://github.com/loeffel-io/ls-lint) looks like a much more powerful and useful tool (that I naturally only found after I finished seeing if I could write something in this vein).