Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chrisphu/basic-filename-linter
- Owner: chrisphu
- License: mit
- Created: 2023-11-04T22:16:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-11T22:32:54.000Z (4 months ago)
- Last Synced: 2024-09-12T08:47:42.765Z (4 months ago)
- Topics: lint, linter, python, python3
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).