Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Zeroto521/Wox.Plugin.PRPR-Clean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wox.Plugin.PRPR Clean

Auto clean PRPR cache pictures.

This script depends on data to clean PRPR cache, it will clean up all the cache one week ago.

screenshots

Example

Before

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.

screenshots > screenshots

After

Cleaning, now.

screenshots

Setting

Two parameters can config.

  1. PATH

    PRPR's local path.

  2. LIMIT_DAYS (default 7 days)

    How long apart from now and delete it.

Step

  1. Install Wox.
  2. Install Wox.Plugin.PRPR-Clean.
  3. Open the Plugin folder.
  4. Open the clean.py file.
  5. Find the parameters and change it.

Attention

This script will DELETE all caches which match the config.

Requirements

Python3.x

Reference

When dealing with byte's unit, using this code.

Other

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.

update

So, this script is time to end.