Pure Lua filebrowser [duplicate]
-
02-07-2021 - |
Question
I'm not sure how to implement a Pure Lua filebrowser... is there any code out there for a pure lua file browser and if not how can I implement it?
Solution
Pure Lua has no module for filesystem access. You may do one of two things:
- Use some of modules available: http://lua-users.org/wiki/FileSystemOperations
- Use os.exec() to do ls-ing and then cd-ing.
For UI you can use one of multiple bindings, like the one for Qt (GUI) or for ncurses (TUI).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow