Can't write to file,access denied.

All about user-defined episode / movie / file name format expressions
Post Reply
Crankrune
Posts: 21
Joined: 20 Jul 2016, 11:35

Can't write to file,access denied.

Post by Crankrune »

I'm trying to write stuff to a text file, and when I do I get an error. Any way to fix this?

ExpressionException: access denied "java.io.FilePermission"
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can't write to file,access denied.

Post by rednoah »

The format sandbox does not allow you write files. You won't be able to write files in your format expression. What are you trying to do anyway?
:idea: Please read the FAQ and How to Request Help.
Crankrune
Posts: 21
Joined: 20 Jul 2016, 11:35

Re: Can't write to file,access denied.

Post by Crankrune »

Honestly just screwing around with different things filebot can do, and this seems like something that could be useful.
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can't write to file,access denied.

Post by rednoah »

You can just write Groovy scripts for more advance scripting tasks: http://www.filebot.net/script.html
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can't write to file,access denied.

Post by rednoah »

CORRECTION: Looks like you will be able to write to your user home, application data folder and temporary files folder.

e.g.

Code: Select all

{home/'json.txt' << json << '\n'}
:idea: Please read the FAQ and How to Request Help.
Post Reply