The node js code will allow to group your files according to your extension.
Steps to use the code 1. Download the two files into your machine and run npm install. (If you don't have npm you can download it from here: https://nodejs.org/en/download/) 2. Assign your documents/desktop path to this variable "Documents_path". The path must br fully resolved path. 3. Run the file, "node sort_files.js" 4. Now, you can see all your files got grouped under thier extensions.