I have a file structure for a program I'm working on that looks like this:
Main.lua
Addons folder
-API.lua
-Addon A.lua
-Addon B.lua
-Addon Z.lua
My problem is all the information I can find about listing files in a directory is inconsistent, and I don't quite under stand file path format in lua. Some people say its easier with lua filesystem but is that even available in open computers? The way I have been thinking about doing it would be something like this:
for dir in io.popen([[dir "PATHHERESOMEHOW" /b]]):lines() do require(dir) end
First will something like t