Go File Organizer CLI

An interactive showcase of a simple and efficient command-line tool.

Live Simulator

This is a simulation of the Go File Organizer CLI. The tool scans a directory and moves files into subdirectories based on their extensions. Click the "Run Organizer" button to see it in action!

📂 Source Directory (Before)

🗂️ Organized Directory (After)

🖥️ Console Output


                

🚀 Features

⚙️

Automatic Organization

Scans a directory and moves files into folders named after their extensions.

🧠

Intelligent Handling

Correctly ignores subdirectories and files that do not have an extension.

🛡️

Safe Directory Creation

Automatically creates destination directories only if they don't already exist.

💻

Cross-Platform

Built with Go's standard library to run on Windows, macOS, and Linux.

🎯

Simple to Use

Takes a single command-line argument for the directory path.

⚙️ How to Use

The tool is run from your terminal. Navigate to the project directory and use the `go run` command, providing the path to the directory you want to organize.

# To organize files in a directory located at /home/user/Downloads go run main.go /home/user/Downloads

⚠️ Safety Warning

This tool permanently moves files on your filesystem. It is highly recommended to first test it on a sample directory with copied files before running it on important directories.

✨ Future Improvements