public
Description: Trash Manager for KDE
Homepage:
Clone URL: git://github.com/muhuk/tms.git
tms /
name age message
file LICENSE.txt Tue Jan 27 03:59:57 -0800 2009 Readme & license [muhuk]
file README.markdown Wed Jan 28 09:18:01 -0800 2009 cosmetics [muhuk]
directory bin/ Tue Dec 30 00:37:42 -0800 2008 Really ugly test runner Got to find a better ... [muhuk]
directory legacy/ Sat Dec 13 03:15:37 -0800 2008 first commit [muhuk]
directory lib/ Loading commit data...
README.markdown

tms is a trash manager for KDE desktop. It deletes old items in your trash until the specified size is reached.

Installation

  • lib/tms directory must be in your PYTHONPATH environment variable.
  • bin directory should be in your PATH environment variable.

TODO: Better installation mechanism and docs.

Configuration

trash_size_limit

Desired trash size after operation. When this criteria is met, erasing will stop. Value of this parameter must be a non-zero integer followed by one of the letters K, M or G (for kilobyte, megabyte and gigabyte respectively).

Default value: 512M

trash_size_limit=4608K      # 4.5 megabytes

trash_size_limit=400M       # 400 megabytes

trash_size_limit=2G         # 2 gigabytes

Unit conversion is done strictly; 1M = 1024K, 1G = 1024G.

erase_older_than

Only items older than specified time can be erased during operation. If all remaining items in trash are newer, erasing will stop even if trash size larger than the trash_size_limit. Value of this parameter mush be an integer. It will be interpreted as age in days.

Default value: 14

erase_older_than=100        # Keep items at least 100 days

erase_older_than=5          # Keep items at least 5 days

erase_older_than=0          # Disable. All items are
                            # candidates for erasing.

To disable this feature set erase_older_than to 0.

clean_invalid_entries

erase_log

Usage