require() a File from system.DocumentsDirectory

Is this possible?

If not, is there any way I can make it work?

Caleb

Requiring a module from someplace other than the Resource directory is considered to be a security risk and not allowed. The reason is code can be downloaded and executed after the app has been published. I know Apple does not allow this practice.

Oh, well…

Thanks anyway!

Caleb

Would one be able to pre write a text/json file and have put it in DocumentsDirectory/info/ then be able to read it?

Yes, you can have a JSON file and read it in.  You just can’t have any executable code.

Requiring a module from someplace other than the Resource directory is considered to be a security risk and not allowed. The reason is code can be downloaded and executed after the app has been published. I know Apple does not allow this practice.

Oh, well…

Thanks anyway!

Caleb

Would one be able to pre write a text/json file and have put it in DocumentsDirectory/info/ then be able to read it?

Yes, you can have a JSON file and read it in.  You just can’t have any executable code.