8000 GitHub - gusevgrishaem1/file-organizer: Organize your files how you want!
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gusevgrishaem1/file-organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Organizer

A simple CLI tool written in Go that organizes files in a directory by moving them into categorized subfolders based on their extensions.

Features

  • Automatically sorts files into predefined categories (Images, Videos, Documents, Archives, etc.).
  • Customizable sorting rules via configuration.
  • CLI-based with simple usage.
  • Efficient and lightweight.

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/file-organizer.git
    cd file-organizer
  2. Initialize the Go module:
    go mod init file-organizer
    go mod tidy
  3. Build the executable:
    go build -o file-organizer main.go

Usage

Run the program with a directory path to organize:

./file-organizer --path ~/Downloads

Example Output

🔄 Organizing files in: ~/Downloads
📂 Moved image1.jpg → Images
📂 Moved video.mp4 → Videos
📂 Moved document.pdf → Documents
✅ Organization complete!

Configuration

You can define custom sorting rules in a config.json file:

{
  "Images": [".jpg", ".jpeg", ".png", ".gif"],
  "Videos": [".mp4", ".mkv", ".mov"],
  "Documents": [".pdf", ".docx", ".txt"],
  "Archives": [".zip", ".rar", ".tar.gz"]
}

Future Improvements

  • Implement a watch mode to automatically organize new files.
  • Add GUI support for easier interaction.
  • Support multi-threading for faster processing.

License

This project is open-source and available under the MIT License.

About

Organize your files how you want!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0