File Organizer: A Python script that effortlessly organizes files in a directory by categorizing them into 'Document,' 'Picture,' 'Music,' 'Movie,' and 'Others' folders based on file types.
Task
I wrote a python script that allows you to effortlessly organize you files in different folder using file formats.
I refactor the code so the script will be able to run from a particular directory more than ones without throwing any error.