What are you trying to build?
Basically, when the user desktop is full of files (Junk Files). Due to the large number of files, it is a daunting task to sit and organize each file. To make that task easy the below Python script comes handy and all the files are organized in a well-manner within seconds.
In this python script program, I used many built-in libraries like- shutil for file movement, datetime for date of the files, argparse for the command line parsing ,math for performing mathematical operations etc.
Main functionality of this program:
- Organize by extension:
By using this option users can organize their files by their file extension in a given folder,a folder will be created according to file extension and finally all files will be moved to the created folder.
- Organize by date:
By using this option users can organize their files by date. random folders will be created according to file's last used date and files will be moved to them.
- Organize by size:
By using this option users can organize their files by their file size, according to file sizes random folders will be created and respective files will be moved to them.
Future work that can be done to improve the project:
We can design the user interface for the program so a normal user can easily interact with it. We can add more features like deleting the files after a certain period of time.