This is a Java application that organizes files in a specific directory based on the its extension.
Every a few months I need to spend some time to organize my files in my download dirctory. To save in the future, I decided to develop a Java program that automatically organizes each file based on its extension.
- File Organization: The program will scan a specified directory (e.g., download directory) and identify all the files present in it.
- File Extension Identification: It will extract the file extension of each file in the directory.
- Grouping Files: The program will categorize the files based on their file extensions. For example, it will group all image files together, all text files together, etc.
- Creation of Subdirectories: Once the files are categorized, the program will create subdirectories (folders) for each unique file extension.
- Moving Files: The program will then move each file to its corresponding subdirectory based on its file extension.
- Automation: The Java File Sorter program will provide automation, allowing the user to run it whenever needed without manual intervention.
You will need:
- Your own config file to store the specified directory path.
Instead of just group the files based on its extension, my future plan is to group the files based on their media type (e.g, images, videos, audio, etc.).