It doesn't (didn't) remove things in the bin or in folder names beginning with 'special' characters, at least in the last released version.IIRC, prpr came up with a tidy-up utility to remove empty folders - could you be using that?
That shouldn't happen because the existence of the sweeper rule itself will prevent the directory from ever becoming empty - it's held in a file called .sweeper within the directory and empty_dustbin doesn't treat that specially.However when the undelete program ran on first boot of the day it removed all empty folders within the recycle bin. The consequence of this was that if the webif-autoshrink folder was empty it would also remove the webif-autoshrink folder and so the sweeper rule would 'disappear'.
That's the problem. The sweeper rule is deleted just like any other file once it has aged sufficiently. The directory is then empty...That shouldn't happen because the existence of the sweeper rule itself will prevent the directory from ever becoming empty - it's held in a file called .sweeper within the directory and empty_dustbin doesn't treat that specially.
humax /mnt/hd2/My Video/[Deleted Items] # mkdir test
humax /mnt/hd2/My Video/[Deleted Items] # touch -d 201609010000 test/.sweeper
humax /mnt/hd2/My Video/[Deleted Items] # touch -d 201609010000 test/
humax /mnt/hd2/My Video/[Deleted Items] # /mod/sbin/empty_dustbin
Emptying dustbin at Mon Sep 19 12:20:45 BST 2016
Dustbin: /mnt/hd2/My Video/[Deleted Items]
Processing dustbin... (2 - 10,20,40,60,80,100,120)
Keeping deleted files for 2 days.
./test/.sweeper
1 = 10, 2 = 20, 3 = 40, 4 = 60, 5 = 80, 6 = 100, 7 = 120,
Free disk space: 177.77 GiB
Removing empty directories...
./test
Looking for orphaned HMT files.
======================================================================
echo "Removing empty directories..."
find . -type d -exec rmdir {} \; -print 2>>/dev/null
find . -type d -exec rmdir {} \; -print 2>>/dev/null
That's the problem. The sweeper rule is deleted just like any other file once it has aged sufficiently. The directory is then empty...
0 */2 * * * touch "/media/My Video/[Deleted Items]/webif_autoshrink/.sweeper" && /mod/webif/plugin/sweeper/test "/media/My Video/[Deleted Items]/webif_autoshrink"
Why is this in twice?
This sounds useful for me - is it still available ?It doesn't (didn't) remove things in the bin or in folder names beginning with 'special' characters, at least in the last released version.
To make it recursive, add recurse <levels> to the start of the rule:and it appears to no longer be working recursively
recurse 99 age 120 action delete