Skip to content
marcus-beauregardPublic

About

A Rust CLI that tidies a messy folder by moving files into per-extension subfolders. Dry-run by default.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

fileforge

fileforge

A Rust CLI that tidies a folder by moving files into per-extension subfolders.

CI License: GPL-2.0-or-later

Quick start

cargo build --release
./target/release/fileforge ~/Downloads --dry-run    # print the plan, move nothing
./target/release/fileforge ~/Downloads              # do it

Or install it on your PATH:

cargo install --path .
fileforge ~/Downloads --dry-run

What it does

Reads the directory, groups files by extension, and moves each into a subfolder named after that extension — .png becomes png/. --dry-run prints the plan and exits without touching anything.

Destination collisions are checked before the rename, because rename(2) would otherwise replace an existing file without a word.

Develop

cargo test
cargo fmt --check

Known gaps

Nested subdirectories are ignored (#5), and the collision check and the rename are separate calls, leaving a window between them (#6).

Contributing

Humans and automated agents are both welcome. There is no CLA — every commit carries a DCO sign-off (git commit -s).

Start with a good first issue, or read CONTRIBUTING.md.

Licence

GPL-2.0-or-later — see LICENSE. Copyright (C) 2026 Marcus Beauregard.

About

A Rust CLI that tidies a messy folder by moving files into per-extension subfolders. Dry-run by default.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages