cwoac / TTS-Manager

Import/Export Mods from Tabletop Simulator
MIT License
24 stars 10 forks source link

Clear unusued cache #6

Open cwoac opened 9 years ago

cwoac commented 9 years ago

As a user, I'd like to be able to clear out the files I no longer need from my cache

bobpaul commented 4 years ago

"No longer needed" as in "assets that no installed mods use?"

So am I correct this would be something like:

  1. Loop through all mods and build a list of already downloaded assets for all installed mods.
  2. Loop through the list of cached files and delete any that aren't referenced by a mod.