Some useful functions like ModDirectoryGetContent(dir: string) -> []string don't exist, but if mods came with some metadata (like the output of find . then they could be implemented.
The idea for the library is mods run what is effectively a build script before publishing that generates this metadata and stores it somewhere. In order to deal with old mods not being built with this a seperate dependency mod could be created that contains the output of the metadata gathering on all currently published workshop mods and puts that metadata into their mod folder via ModTextFileSetContent. This way the standard would (mostly) work even if nobody used it so it would be more safe for mods to rely on.
Potentially useful data that could be generated includes:
- All files in the mod
- Copies of mod.xml / workshop.xml (the builtin ones aren't readable from the api)