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?

有帮助吗?

解决方案

Pure Lua has no module for filesystem access. You may do one of two things:

  1. Use some of modules available: http://lua-users.org/wiki/FileSystemOperations
  2. 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).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top