Io.open() fails but sys.load_resource() succeeds

I’m trying to read a file using io.open(/main/my_folder/my_file.json) but it says there is no such file or directory…however if I instead use sys.load_resource() the the file is opened as expected.

Is each function expecting a different kind of path or amI missing something else entirely?

Thanks!

sys.load_resource() will load a custom resource bundled with the app (using the custom_resources field in game.project).

sys.load/save() and io.* all work on files on disk. You cannot use these functions to access resources bundled with the app.