FileBot 4.6.1 (r3718) clear-cache BUG

All your suggestions, requests and ideas for future development
Post Reply
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

FileBot 4.6.1 (r3718) clear-cache BUG

Post 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
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Post 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
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Post 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 ?
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Post 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.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Post 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
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Post by rednoah »

I mean the new new revision. The next revision (r3724) should only delete the cache folder.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: FileBot 4.6.1 (r3718) clear-cache BUG

Post by kim »

now its fixed THX
FileBot 4.6.2 (r3724)
* Delete C:\Program Files\FileBot\cache\0
Post Reply