This is a personal open-source project created for fun and learning Kotlin scripting.
A simple Kotlin script that automatically organizes your files into folders based on their types (Images, Documents, Videos, Audio, etc.).
- Automatically sorts files into categorized folders.
- Works recursively through subdirectories.
- Deletes empty folders after organizing.
- Fully customizable – choose any directory to organize.
- Works on Windows, macOS, and Linux.
- The script scans your chosen folder (default:
Downloads). - It moves files to corresponding folders like:
Images/Documents/Videos/Programs/- and more...
- It removes any empty subfolders afterward.
- Open the project in IntelliJ IDEA or any Kotlin-compatible environment.
- Change the directory you want to organize:
val targetDir = File(home, "Downloads")