Stvad / CrowdAnki

Plugin for Anki SRS designed to facilitate cooperation on creation of notes and decks.
MIT License
520 stars 44 forks source link

Set to remove old media directory before exporting it again to clean unused files #212

Open evandrocoan opened 1 month ago

aplaice commented 1 month ago

Thanks very much for the contribution (as always!)!

Clearing out all unused media files is indeed what we should be doing!

I'll need to check whether there's any risk of undesired removal of files elsewhere due to undefined variables (I think not, but best to be sure) (maybe it's best to just remove all files in the media directory, rather than do (the equivalent of) rm -r media/, to limit the potential damage scope, just in case we modify something elsewhere?) and whether there's a performance slow down (almost certainly not, since we're simply copying everything anyway in the next step). (In a couple of days, since I won't have time in the immediate future.)