A simple and safe-ish command-line tool to organize files in a directory by their file extensions.
Files are moved into folders like pdf_container, jpg_container, zip_container, etc.
Folder directories are grouped into a folder_container.
- Organizes files by extension
- Groups directories separately
- Safe dry-run mode (no changes made)
- Automatic duplicate file resolution
- Verbose logging option
- Cross-platform (Linux, macOS, Windows)
- Installable as a global CLI tool
pip install files-organizer
Verify installation:
organize --help
git clone https://github.com/bigtimer-dev/Files-Organizer.git
cd Files-Organizer
pip install .
git clone https://github.com/bigtimer-dev/Files-Organizer.git
cd Files-Organizer
pip install -e .
Basic usage:
organize PATH
Example:
organize ~/Downloads
Preview what will happen without moving files:
organize ~/Downloads --dry-run
Show detailed logs:
organize ~/Downloads --verbose
- PATH — Directory to organize
- --dry-run — Show actions without making changes
- --verbose — Print detailed execution logs
- --help — Show help message
.pdf→pdf_container/.jpg→jpg_container/.png→png_container/.zip→zip_container/- No extension →
no_extension_container/ - Directories →
folder_container/
If a file already exists in the destination folder, it is renamed automatically:
file.pdf
file(1).pdf
file(2).pdf
Files are never overwritten.
- Existing
_containerfolders are skipped - Designed for single-directory (non-recursive) use
- Always use
--dry-runbefore running on important folders
git clone https://github.com/bigtimer-dev/Files-Organizer.git
cd Files-Organizer
pip install -e .
MIT License © bigtimer-dev (Alvin Noboa)