Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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 folder

basically:

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