Page 1 of 1
cleaner.groovy does not delete all (correct) folders
Posted: 06 Jan 2016, 16:51
by primeid
Hi,
newbee alert.
I have added the suball.groovy script til my mediacenter with this command line: "c:/program files/filebot/filebot.exe" -script fn:cleaner e:/movies --def minsize=100000000 --log-file "C:\scripts\suball.log"/
But several folders with only thumbs.db and/or folders with 40mb files etc is not removed. The log only says "Done dlkfjdksfjfdhkjds".
I want to delete all folders that contains files under 100mb. Is my command-line correct?
Re: suball.groovy does not delete all (correct) folders
Posted: 06 Jan 2016, 19:13
by rednoah
Are we talking about the suball script? Or the cleaner script? I guess the cleaner script as it is right now just doesn't deal with hidden/system files. So using it to delete Thumbs.db files probably won't work.
PS: Does Windows still create Thumbs.db files in every folder? I thought they stopped doing that with Vista.
Re: suball.groovy does not delete all (correct) folders
Posted: 07 Jan 2016, 07:26
by primeid
yes. sorry. Its the cleaner script.
Is it possible to do some modifications to make it delete system and hidden files?
Yes, Windows 8.1 still uses thumbs.db, but I can just disable that feature.
Re: suball.groovy does not delete all (correct) folders
Posted: 07 Jan 2016, 07:36
by primeid
Another "bug" is that it doesnt delete any files that dont have any file extension. is it possible to get around that?
Re: suball.groovy does not delete all (correct) folders
Posted: 07 Jan 2016, 09:27
by rednoah
I've made some changes yesterday. You can try the latest version (by using
-script dev:cleaner) and see if it's now handling hidden *.db files as well now.
The cleaner script will only target files with certain extensions. Files with no extension will probably be ignored (again, so the n00bs can't wipe their system files). You might be able to get around that one by passing in your own
exts or
terms parameters.
I recommend having a quick look through the code:
https://github.com/filebot/scripts/blob ... ner.groovy
Re: suball.groovy does not delete all (correct) folders
Posted: 07 Jan 2016, 11:32
by primeid
Ok great. thanks!
Do you have an example for how t use the exts or terms parameters to also include files with no extension?
Couchpotato and Sonarr sometimes makes these files, I dont know why.