DEV Community

Bobo
Bobo

Posted on

Automate Your File Organization with One Command Every Day

Automate Your File Organization with One Command Every Day

Stop manually organizing files. One command does it all.

The Problem

Downloads folder with 500+ unsorted files. Screenshots, PDFs, CSVs, images — all mixed together.

The Solution

file-batch-toolkit organize ~/Downloads --by-type
# Creates: Images/, Documents/, Data/, Archives/
Enter fullscreen mode Exit fullscreen mode

Custom Rules

file-batch-toolkit organize ~/Downloads --rules my_rules.json
Enter fullscreen mode Exit fullscreen mode
{
  "invoice_*.pdf": "Invoices/",
  "report_*.csv": "Reports/",
  "IMG_*": "Screenshots/"
}
Enter fullscreen mode Exit fullscreen mode
file-batch-toolkit organize ~/Downloads --rules my_rules.json --dry-run
file-batch-toolkit organize ~/Downloads --rules my_rules.json
Enter fullscreen mode Exit fullscreen mode
npm install -g file-batch-toolkit
Enter fullscreen mode Exit fullscreen mode

Visit us | Get free DigitalOcean credit | CLI Toolkit Pro $9.99

Top comments (0)