[Feature Request] Auto-purge resources folder
Add an auto purge for the resources folder
Since every mod gets downloaded into that one folder, joining random modded servers can easily lead to gigabytes of diskspace used up for mods you might never use again.
On startup, the launcher could not only auto delete the left over multiplayer mods from the previous session, it could also delete old files in the resources folder.
Every way i came up with has apparent downsides:
- Leave as is. Folder gets filled uncontrolled
- Delete by user. Notify with a toast or in the launcher when the resources folder gets above/free disk space gets below a certain size. Needs brain
- Delete by file date. If you dont play for some time, all mods would be deleted
- Delete by folder size and file date. If the folder gets bigger than a certain size, delete old files. Would delete them even if you use them daily if the size is too constraint
- Delete unused mods. Would require a database to store when a mod was last used. Same issue as with filedate, if you dont play for some time, they all get deleted. Maybe check against last time played MP?
Folder size and file date might be a good compromise, if the folder size limit is lenient enough (30gb?)
I would personally let the user decide
I would print a message into the client console saying that "you have amount of mods and is totaling amountGb if you want to save some space you can navigate to Folder directory and delete them "
I would create another folder but for favourite servers maybe? so the only mods that are not purged are for the servers in your favourites tab
Definitely dont delete anything without confirming with the user right before deletion. My internet is so slow at the moment that, if it deletes the Nordschleife download, I have to wait like an hour for it to download at least. Definitely let the user decide.
There are also a LOT of duplicate mods in there, becuase the zip files were named differently - also a solved problem, pretty much, by hashing the file contents.