Kleandisk has since version 1.0.0 the abbility to add file groups which are created by the user. These groups, called User Defined Groups, consists of several fields containing data. See below for a description of these fields.
Name. This name will be shown on the group list view.
Description. The description field can be used for a description of the group.
File Pattern. The files in the group matches the regular expression(s) filled in this field. Wildcards are allowed here. E.g. * means any file and *.jpg means all files ending on .jpg.
Folder. This defines in which folder the files must reside. This should not necessarily be a complete path (with a leading /). When you fill in, for example, "/tmp" kleandisk will only add files to this group when they reside in "/tmp" (or any subfolder). When you fill in "tmp", thus without a leading slash, kleandisk will only add files when they are contained in any folder named "tmp" or any subfolder of a folder named "tmp".
Safety Level. This defines how many days ago a file must be read for the last time to be safe to be deleted. A safety level of 0 means all files in this group are safe to be removed, unregard of the date the file has been read for the last time. Files, according to this number, which are safe to be deleted will appear with a green square in front of them.
Maximum Archives/Backups. This defines the maximum number of archives/backups which should be created. When the maximum number is reached the next archive/backup will replace the oldest archive/backup. This feature is especially useful in case of scheduling backup or archives. A value of zero indicates that no backup or archive will ever be automatically removed.
Command. After Kleandisk has finished a scheduled action it's possible to execute a command. Leave this empty if you don't want to execute a command. This field is especially useful in case of rotation of log files.
After pushing the "Update" button Kleandisk will scan the harddisk for files that will fit in a UDG. The search will start in the folder shown above the "Browse" button. After it has scanned all files the UDG's will be filled with the files it has been found. The result of the update will be saved between different sessions of Kleandisk.
Tip: When a group has a folder field with a complete path (beginning with a slash) this group can be updated without updating the other groups by right clicking on this UDG in the list view. This way time can be saved when you only want to update this group.
Note: A group can contain a maximum of 1500 files.
Click on a UDG to see the contents in a list view. The files can be seperately selected by clicking on the squares. Pushing the "Select all" button will select all green squares. Pusing "Deselect all" will deselect all files.
After a selection has been made the files can deleted, moved or archived from the harddisk by pushing the "Clean up" button. A wizard will appear and guide you through the cleaning.
Tip: It may be handy to make an archive of all the files in a group. A quick way in achieving this is by right clicking on a group and selecting "Quick Archive". Because of this I found it, for example, very useful to make a quick backup of my C++ files. Of course you have to add an appropriate UDG first.
After pushing the button "New Group" a UDG editor will pop up. This editor contains the fields which will define the new group.
Right click on the group you wish to delete. A pop up window will appear. Select "delete" to delete the corresponding group. Note that the files contained in the group will not be deleted when a group is removed.
Since version 1.1.0 it's possible to schedule an action. Right click on a UDG and select edit to open the editor. Choose the schedule tab to edit the schedule. It is possible to schedule four actions: 'Delete & Backup', 'Delete', 'Archive' and 'Move'. These actions will only deal with the 'green' files of a group. When a group is empty or the group only contains red files no action will take place. In case of all actions a folder is involved. This folder has different meanings in different actions:
Action: meaning of folderDelete & Backup: place where backup is putDelete: no meaning
Archive: place where archive is put
Move: place where files are moved to
This folder means where the files from the file group will be moved. After enabling a schedule a clock will appear in the UDG list view. The color of the clock represents the following:
red: 'Delete'
yellow: 'Delete & Backup' or 'Move'
green: 'Archive'
The time on which actions are scheduled are defined in 3 lists. A day (between 1 and 31), hour (between 0 and 23) and minute (between 0 and 59) list. To add a day to the list first select the radio button in front of the day list. Then choose a day from the spinbox and push the 'add/delete' button. The number of the day will appear in the day list. To remove the last list entry push the 'add/delete' button again. The 'add/delete' button will add or delete a day depending on the number in the corresponding spinbox list. When the number in the spinbox is conained in the list the 'add/delete' button willl delete the corresponding entry from the list otherwise the number is added.
To add a cycle to the list check the 'every' box. You can, for example, add a 2-day cycle (day 2, day 4, day 6, ) to the list by setting the spinbox to 2 and check the 'every' box. Note that only one cycle can be added to a list. To remove the cycle add a different cycle or click 'add/delete' again. Note that after setting a cycle it isn't useful to add certain new days. In case of a 5-day cycle you can't for example add 25 to the list because it is contained in the cycle. In case of a 1-day cycle no more days can be added. In the same way hours and minutes can be added and deleted to their corresponding lists.
Example: When you want to schedule an action on every day (day 1, day 2, day 3, etc.) at 12:00 and 20:00 you have to make the follwing lists:
Days: every 1
Hours: 12, 20
Minutes: 0
Note: Scheduling works only when the UDG viewer is closed. Tip: When a list becomes too long it cannot be totally displayed. In that case move the pointer to the corresponding list and wait until a tooltip appears.
Tip: Make an UDG which removes your mail trash every day.