mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-29 10:48:21 +01:00
11 lines
267 B
Lua
11 lines
267 B
Lua
|
auth_or_die("User unauthorized. Please login")
|
||
|
local vfspath = (JSON.decodeString(REQUEST.query.json)).path
|
||
|
local r = require("fs.vfs").readDir(vfspath)
|
||
|
if r == nil then
|
||
|
fail("Resource not found")
|
||
|
else
|
||
|
--print(JSON.encode(readDir(ospath, vfspath)))
|
||
|
result(r)
|
||
|
end
|
||
|
|