Auto clean PRPR cache pictures.
This script depends on data to clean PRPR cache, it will clean up all the cache one week ago.
Look this, it created at 2018-8-13. Now 2018-10-31, it already had around 4.5GB files only two and a half months.
Cleaning, now.
Two parameters can config.
-
PATH
PRPR's local path.
-
LIMIT_DAYS (default 7 days)
How long apart from now and delete it.
- Install
Wox
. - Install
Wox.Plugin.PRPR-Clean
. - Open the Plugin folder.
- Open the clean.py file.
- Find the parameters and change it.
This script will DELETE all caches which match the config.
Python3.x
When dealing with byte's unit, using this code.
You must open Wox
and key in cls
every time, troublesome.
An auto-cleaning function may be the PRPR's function, not others. So, this script is temporary.
Today(2018-11-01) PRPR update and add auto-cleaning function.
So, this script is time to end.