FSFP is a very cool file selector for your apps!
- 1 : Create a lib folder and put
explorer.lua - 2 : go to your
manifest.jsonand addfilesin the permissions - 3 : Copy this very nice example code (available in
app.lua) :
x = require("lib/explorer.lua")
function run(arg)
win = gui:window()
local function callback_file(content)
print("file content :")
print(content)
-- do something with this.
end
x.ShowFiles("../", callback_file) -- (Arg1: Enter the base folder, Arg2 Enter the callback function)
gui:setWindow(win)
endUnder the MIT License