Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0x1nf3cted/mcphee
a program that organize files inside a directory into sub-folders
https://github.com/0x1nf3cted/mcphee
directory directory-traversal filesystem folders-sort linux python
Last synced: 4 days ago
JSON representation
a program that organize files inside a directory into sub-folders
- Host: GitHub
- URL: https://github.com/0x1nf3cted/mcphee
- Owner: 0x1nf3cted
- License: mit
- Created: 2023-03-23T16:21:44.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-04T04:17:35.000Z (over 1 year ago)
- Last Synced: 2024-10-11T03:18:33.541Z (26 days ago)
- Topics: directory, directory-traversal, filesystem, folders-sort, linux, python
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# McPhee 🧙
this code will:
- iterate through a directory
- takes each file
- extract its extension
- make a folder with the same name of that extension
- store the file inside that folderbasically:
finds a file called 'image.jpg' --> created a folder called jpg --> stores 'image.jpg' inside jgp folder
## run 🐍:
`python3 mcphee.py /path/to/directory`
![example](example/screenshot.png)
| :exclamation: this works only for linux, haven't tested it on windows/macOs |
|-----------------------------------------|you're more then welcome to contribute