SmileyChris / easy-thumbnails

Easy thumbnails for Django
http://easy-thumbnails.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
1.37k stars 312 forks source link

Extend management command by option to delete orphans #614

Open mtueng opened 1 year ago

mtueng commented 1 year ago

Orphans are files in storage that have no source.

After years of using easy-thumbnails, we found orphaned files in stacking up in storage. Finding files without a source was not possible so far with the management command. This commit extends the existing management command to support a new option that allows exactly this. The change is backwards compatible. If you are interessted, please pull it. :-)

Signed-off-by: Max Tuengerthal max@tuengerthal.net