I'm suggesting two functions for LuaHelpers, and they would probably only work in the Prototype stage:
- file_exists: Returns true if the filepath contains a file.
- read_file: Returns the contents of the file as a string, or nil if there is no file.
My motivation is the mod Modlist UI, which attempts to gather all loaded mods' metadata and display them in-game. Instead of asking for an expansion to the active_mods table, I thought it would be interesting if a mod could read another mod's info.json directly and parse it using helpers.json_to_table().
Possibly add list_files as well (similar to Unix ls command) to allow recursive exploration of a mod's file tree, but I can see why you wouldn't want that.


