Sortify is a command-line utility written in Go that helps you organize files in a directory by automatically sorting them into appropriate subdirectories based on their file extensions.
- Automatically categorizes files into meaningful directories based on file extensions
- Supports a wide range of file types including:
- Images (jpg, png, gif, etc.)
- Documents (pdf, doc, txt, etc.)
- Audio Files (mp3, wav, etc.)
- Video Files (mp4, mkv, etc.)
- Archives (zip, rar, etc.)
- And many more categories
- Simple command-line interface
- Preserves original filenames
- Creates category directories automatically
- Make sure you have Go installed on your system
- Clone this repository:
git clone https://github.com/yourusername/sortify.git cd sortify - Build the project:
go build
Run the program with the -d or --dir flag to specify the directory you want to sort:
./sortify -d /path/to/directoryor
./sortify --dir /path/to/directoryContributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.