A command-line tool written in Go that helps you automatically organize files inside a directory based on their file types.
Built using Cobra for a modern, user-friendly CLI structure and supports concurrent processing for better performance.
- π§ Auto categorize files into folders such as Documents, Photos, Music, Videos, Archives, etc.
- β‘ Concurrent file moving using goroutines for fast processing.
- π Live progress bar to monitor organization progress in real-time.
- π·οΈ Customizable categories (easy to add or modify).
- π§© Built with Cobra for clean command architecture.
- π§° Written 100% in Go.
file-organizer/
βββ cmd/
β βββ root.go # Root command definition
β βββ organizer.go # "organizer" subcommand logic
βββ go.mod
βββ main.go # Entry point
Run locally
go run main.go organizer --path /target/directoryAfter running the tool, your target directory will be organized like this:
/target/directory
βββ Documents/
β βββ report.pdf
β βββ notes.txt
βββ Photos/
β βββ vacation.jpg
β βββ family.png
βββ Music/
β βββ song.mp3
β βββ album.flac
βββ Videos/
β βββ movie.mp4
β βββ clip.avi
βββ Archives/
βββ backup.zip
βββ data.tar.gz