File Organizer is a Node.js script designed to organize files within a specified directory based on their file extension. It creates separate folders for each file type and moves corresponding files into their respective folders.
- Automatic File Organization: Move files into folders based on their file extensions.
- Error Handling: Handles errors such as directory creation failure and file reading failure.
- Node.js installed on your system.
-
Clone the repository:
git clone https://github.com/Yaseen-Naik/File-Organizer.git
-
Navigate to the project directory:
cd file-organizer
-
Run the File-organiser to create an empty folder named "Organise Files"
node organizeFiles.js
-
Copy all the files you want to sort to the folder just created
-
Run the File-organiser again to sort the files present in the "Organise Files" Folder
node organizeFiles.js