Page 1 of 1

FileBot 4.6.1 (r3718) clear-cache BUG

Posted: 16 Mar 2016, 22:27
by kim
it's a BIG error that it delete the FileBot\lib folder

FileBot 4.6.1 (r3718) / Java(TM) SE Runtime Environment 1.8.0_73
C:\Program Files\FileBot>"C:\Program Files\FileBot\FileBot.exe" -clear-cache
Clear cache and temporary files
* Delete C:\Program Files\FileBot\.oracle_jre_usage
* Delete C:\Program Files\FileBot\cache
* Delete C:\Program Files\FileBot\lib
* Delete C:\Program Files\FileBot\logs
Using persistent disk cache C:\Program Files\FileBot\cache\0
btw: "Package: PORTABLE"
from script fn:sysinfo

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Posted: 17 Mar 2016, 07:33
by rednoah
1.
FileBot doesn't create a lib folder, so it shouldn't be there. Did you create that folder?

2.
Also, how does it even have permission to delete files in C:\Program Files at all? You put the portable where the installed version should be? :D

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Posted: 17 Mar 2016, 14:57
by kim
well...

1.
I NEED to have my custom lib\htpc.groovy

2.
download = Chocolatey
made it portable = ini file(s)
-Dapplication.deployment=portable
-Dapplication.dir="%EXEDIR%"
-Duser.home="%EXEDIR%"
because i dont like filebot using multiple folder places
made full permission for my windows user (cant remember why... stop prompts I think)

if you will not "fix" it / go back to when it works aka. dont delete lib dir... then how do I bypass this and KEEP my lib\htpc.groovy ?

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Posted: 17 Mar 2016, 15:42
by rednoah
1.
lib/htpc.groovy is supposed to be relative to amc.groovy which can be anywhere, and is not supposed to be in the filebot program files. If you want your own scripts, you're supposed to git clone them somewhere (not program files), and then call those scripts with local file paths.


2.
-clear-cache will only clear out the filebot cache folder now, not all the other folders that may or may not have been created (temp, grapes, etc) by filebot or filebot scripts.

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Posted: 17 Mar 2016, 17:08
by kim
2. I'm not sure I understand ?

It still deletes lib dir
"FileBot 4.6.2 (r3723) / Java(TM) SE Runtime Environment 1.8.0_73" :
"C:\Program Files\FileBot\FileBot.exe" -clear-cache --a
ction test --log info --log-file context.log
Clear cache and temporary files
* Delete C:\Program Files\FileBot\.oracle_jre_usage
* Delete C:\Program Files\FileBot\cache
* Delete C:\Program Files\FileBot\lib
* Delete C:\Program Files\FileBot\logs
* Delete C:\Program Files\FileBot\temp

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Posted: 17 Mar 2016, 17:10
by rednoah
I mean the new new revision. The next revision (r3724) should only delete the cache folder.

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Posted: 17 Mar 2016, 17:45
by kim
now its fixed THX
FileBot 4.6.2 (r3724)
* Delete C:\Program Files\FileBot\cache\0