mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-29 10:48:21 +01:00
9 lines
196 B
Lua
9 lines
196 B
Lua
|
auth_or_die("User unauthorized. Please login")
|
||
|
local vfspath = (JSON.decodeString(REQUEST.query.json)).path
|
||
|
local r,m = require("fs.vfs").fileinfo(vfspath)
|
||
|
if r then
|
||
|
result(m)
|
||
|
else
|
||
|
fail(m)
|
||
|
end
|