Downsorter

A small Python CLI tool that organizes files by extension into category folders.

Use it to clean up a messy folder, especially downloads, by moving images, documents, archives, installers, code, audio, and video files into the right subfolders.

Features

Platform Support

Platform Support Notes
Windows 10/11 Supported Best tested platform for this project
macOS Supported Works with Python 3.10+
Linux Supported Works with Python 3.10+

Files

Install

From PyPI ( run this in powershell)

pip install downsorter

Usage

Preview what will happen

This is the safest way to run the tool first.

downsorter --folder "C:\Users\YourName\Downloads"(or put path inside "" of whatever folder you want to sort)

Actually move files

downsorter --folder "C:\Users\YourName\Downloads"(or put path inside "" of whatever folder you want to sort) --apply

EG: Only move files older than 7 days ( default days is 0 , i.e no requirement)

downsorter --folder "C:\Users\YourName\Downloads" --min-age-days 7 --apply

Options

How it works

  1. The script scans the target folder for files.
  2. It matches each file extension against a category list.
  3. It builds a plan showing where each file would move.
  4. In preview mode, it only prints the plan.
  5. In apply mode, it creates category folders, moves files, and logs the results.

Categories

The project currently sorts files into:

Example

Run this to preview then apply:

downsorter --folder "C:\Users\YourName\Downloads"
downsorter --folder "C:\Users\YourName\Downloads" --apply

License

This project is licensed under the MIT License.