Back to browse
GitHub Repository
4 starsRust

Groupr – Rust CLI that sorts files into subfolders by extension

by timfinnigan·Apr 14, 2026·4 points·0 comments

AI Analysis

MidCozyShip It

~150 lines of Rust sorts files by extension, but file organizers are a dime a dozen.

Strengths
  • Zero dependencies outside tempfile for dev—pure stdlib Rust keeps binary small and fast.
  • Collision handling appends _1, _2 suffixes instead of overwriting existing files.
Weaknesses
  • File organization scripts are extremely common—dozens exist on GitHub with identical functionality.
  • No recursion into subfolders limits usefulness for deeply nested directory structures.
Category
Target Audience

Anyone with messy Downloads folders, power users organizing file systems

Similar To

Hazel · Files 2 Folder · file-organizer-2000

Post Description

Wrote this to clean up my Downloads folder. It moves top-level files into subfolders named after their extension. photo.PNG goes into png/, files with no extension go into no_extension/. --dry-run if you want to see what it would do first.

A few details: it doesn't recurse into existing subfolders, extensions are lowercased so you don't get png/ and PNG/ coexisting, and it handles name collisions by appending _1, _2, etc. rather than overwriting.

~150 lines of Rust, no dependencies outside of tempfile in dev.

cargo install --git https://github.com/timfinnigan/groupr groupr ~/Downloads --dry-run

Similar Projects