Skip to content

mzulfanw/file-organizer-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ—‚οΈ File Organizer CLI

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.


πŸš€ Features

  • 🧠 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.

πŸ—οΈ Project Structure

file-organizer/
β”œβ”€β”€ cmd/
β”‚ β”œβ”€β”€ root.go # Root command definition
β”‚ └── organizer.go # "organizer" subcommand logic
β”œβ”€β”€ go.mod
└── main.go # Entry point

🧰 Development

Run locally

   go run main.go organizer --path /target/directory

πŸ“¦ Example Folder Result

After 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages