- Create Dictionaries: The code below will create the defined Directories.
- Mapping: Now we will map the file formats with directory.
- 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.