BeamMP-Launcher icon indicating copy to clipboard operation
BeamMP-Launcher copied to clipboard

[Feature Request] Auto-purge resources folder

Open O1LER opened this issue 1 year ago • 3 comments

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?)

O1LER avatar Dec 26 '22 10:12 O1LER