Warning
Currently works only on Windows OS
This repository aims to organize the provided directory into folders based on the file type. Here is the resulting folder structure:
Root
├── Documents
│ ├── file1.pdf
│ ├── file2.docx
│ └── file4.doc
├── Images
│ ├── image1.jpg
│ ├── image2.png
│ └── image3.jpeg
├── Gif
│ └── gif1.gif
└── Videos
├── video1.mp4
├── video2.mpeg
└── video3.mov
You don't need to install any libraries; only Python is required.
You can download it from its official website here.
- Download or clone this repository to your local machine.
git clone https://github.com/luxiopppp/file-sorter
- Run the
sorter.py
script to perform the organization. - Provide the necessary information to organize properly.
- The files will be automatically moved to the corresponding folders based on their file type.
That's it! Now your directory will be organized into folders by file type. If you want to make any modifications to the folder structure or add new file types, you can edit the sorter.py
script according to your needs.
If you run into any problems, please let me know on the issues page.
I hope this organization is helpful for you! 😄