This script scans a given folder, identifies the files, and organizes them into subfolders based on their extensions. If a subfolder corresponding to the file extension doesn’t already exist, it creates one and moves the file there. 📁
This is ideal for cleaning up and organizing large directories with various file types. 🔧
This helps in organizing files by type, making your directory structure cleaner and easier to navigate. 🧹
Clone this repository to your local machine:
```bash git clone https://github.com/programmingwithprince/Organize-files-into-folders.git
2.Navigate to the project directory:
cd Organize-files-into-folders
## 🚀Usage
dir variable to the directory you want to organize:dir variable with the path to the directory you want to organize:
dir = "D:\\Your\\Directory\\Path\"
Run the script:
node fileOrganizer.js
Contributions are welcome! If you’d like to contribute to this project, feel free to fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License.📝