Junk File Organizer in Python

Basically, as a lazy programmer my 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.

Following are the steps to be followed:

  1. Create Dictionaries: The code below will create the defined Directories.
  2. Mapping: Now we will map the file formats with directory.
  3. Organizing: Following is the code for Python Lazy Junk Files Organizer. It will organize everything in appropriate folder in a single go and remove empty directories.