EXPERIMENT 001 · sweep
filename classifier
seeing where Sweep puts a filename
Question
Given only a filename, which category does Sweep pick, and where would the file end up? Sweep classifies files by their final extension before deciding where they belong. This reproduces that small part of its current behavior in the browser; Sweep itself is not running here.
Bench
bench · runs in this browser
| file | suffix | category | destination |
|---|---|---|---|
| photo.png | .png | Images | ~/Downloads/Images/photo.png |
| REPORT.PDF | Documents | ~/Downloads/Documents/REPORT.PDF | |
| archive.tar.gz | .gz | Archives | ~/Downloads/Archives/archive.tar.gz |
| README | (none) | Other | ~/Downloads/Other/README |
| .hidden | (none) | Other | ~/Downloads/Other/.hidden |
5 files classified · Images 1 · Documents 1 · Archives 1 · Other 2
Why .hidden is "Other"
Python 3.14
Path.suffix treats a leading dot as part of the name. Only the final suffix counts: archive.tar.gz uses .gz. A trailing dot is suffix ., so image. is Other. Filename spaces are preserved. Destinations are previews; no files move.Fidelity
classification rulesas documented in docs
suffix behaviorPython 3.14 Path.suffix
file system accessnone · nothing moves
conflict check, sizenot reproduced
Based on Sweep revision 3544d36. Only filename extensions are considered. No files are uploaded, inspected, or moved.