@guy038
Some of them as you have found are fairly simple to understand. To clarify the rest of them you listed:
winfile.attributes is a UTF-8 implementation of the LuaFileSystem library’s
attributes function. It is able to query various file attributes. I recommend looking at the link to see the full details.
winfile.dir is a UTF-8 implementation of the LuaFileSystem library’s
dir function. And as you guess is used for iterating directories. An example can be seen
here for recursively walking a directory.
winfile.execute is a UTF-8 implementation of the Lua built-in function
os.execute for executing shell commands
winfile.loadfile is a UTF-8 implementation of the Lua built-in function
load for loading (i.e. parsing and compiling) Lua code
winfile.open is a UTF-8 implementation of the Lua built-in function
io.open for reading and writing to files.
winfile.popen is a UTF-8 implementation of the Lua built-in function
io.popen to start an external process and return a file descriptor for reading/writing