File Grouping Python Script
This article is about how to use simple python script that groups files with same extension into a folder
This eradicates the tedious and boring job of creating folders manually and moving files into them.
Let’s dive in and see how it works …..!
Where to keep the script?
The script should be outside the folder which you need to organize
Get DasarajuAbhishekVarma’s stories in your inbox
Join Medium for free to get updates from this writer.
In my case experiment folder has script named demo.py and live_demo is the folder containing various files
Now comes our magic script
Now just execute the above file and see the magic. You should see the files are arranged in their respective extension folders like below.
If you like the post please show you interest in comments. Next time I will come up with something exciting.




