AWS Builder Center

Weekend Annoying Task Challenge: Smart Downloads

A desktop app that watches your Downloads folder in real time, automatically sorts new files into categories, and backs them up to Amazon S3 — built in a weekend using Python, watchdog, and boto3.

Vision & What the App Does
Every week I lost time to the same annoying task: downloading a file, forgetting about it in my Downloads folder, and weeks later ending up with hundreds of PDFs, images, installers, and videos all mixed together with no organization at all. Sometimes I couldn't even remember if I had backed up something important — a resume, a contract, a receipt — and that turned into a small but recurring source of anxiety.
Smart Downloads was built to solve exactly that: an app that runs in the background, watches the Downloads folder in real time, and as soon as a new file finishes downloading, it automatically:
  1. Identifies the file's category (Document, Image, Video, Audio, Archive, Installer)
  1. Moves the file into a category-organized subfolder
  1. Uploads a backup copy to Amazon S3
From the user's perspective, the experience is simple: you open the app once, configure your S3 bucket and which categories to organize, and from then on you just download files normally. A graphical dashboard shows the monitoring status in real time, the last file processed, how many files were organized today (broken down by category), and a history of recent events — so you always know backups are happening, without having to think about it.

How You Built It

I started by splitting the project into clearly separated modules, to avoid one giant, hard-to-maintain file:  config.py  (settings and categories),  monitor.py  (folder watching),  organizer.py  (categorization and file-moving logic),  uploader.py  (S3 integration),  ui.py  (graphical interface), and  utils.py  (logging and history).
The most important architecture decision was using the  watchdog  library to monitor the file system in real time, instead of polling the folder at intervals, which would be slower and waste resources.
The biggest technical challenge showed up after my first round of testing: files organized manually worked perfectly, but files actually downloaded from the internet weren't being organized at all. After investigating, I found that browsers like Chrome first save downloads as a temporary file ( file.pdf.crdownload ) and only rename it to the final filename once the download completes. My code was only listening for file creation events, so it was ignoring that rename entirely. The fix was to also handle watchdog's  on_moved  event, in addition to waiting for the file size to stabilize before moving it (to avoid grabbing a half-finished download).
Another detail I had to handle was avoiding overwrites: if a file named  photo.png  already exists in the destination folder, the app automatically saves the new one as  photo (1).png .

AWS Services Used / Architecture Overview

  • Amazon S3: stores the backup of organized files, with prefixes per category (e.g.,  bucket/Documents/file.pdf )
  • IAM: a dedicated user with permissions scoped to S3 operations, used by the app's local credentials via  boto3 

Architecture flow:
Downloads folder
→ watchdog detects a new file (created/moved event)
→ organizer.py identifies the category and moves it to the local organized folder
→ uploader.py uploads the file to Amazon S3 (bucket/<category>/file)
→ utils.py logs the event to history
→ ui.py updates the live dashboard

What You Learned

The main technical lesson was about how browsers actually handle file downloads on disk — something I hadn't accounted for in the initial design, and that only surfaced when testing with real downloads instead of simulated file creation. It reinforced how important it is to test the complete end-to-end flow before considering a feature done.
On the AWS side, this was my first time integrating  boto3  in a practical way inside a desktop app with a graphical interface, including automatic bucket creation and credential error handling — a solid first hands-on experience with how a desktop application can connect to cloud services without needing a separate backend.

Demo — End-to-End Walkthrough

Below is the full sequence showing the app organizing a real download, from start to finish.
1. Before — messy Downloads folder

  1. 2.App open, monitoring active

  1. 3.S3 Bucket configured

  1. 4.Downloading a real file from the internet

  1. 5.Dashboard updated with the processed file

  1. 6.Local folder already organized by category

  1. 7.File in the S3 bucket (AWS console)

  1. 8.Event history in the app

  1. 9.Config Options on the App


Link to App or Repo

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article