Skip to content

列出文件和目录

Base URL: ws://ip:port

类型说明备注
方法WebSocket
入口file/list/{id}/{path}{id} 为 Bot 的 uuid, {path} 为子路径
调用方式异步调用
请求格式字符串 (String)file/list/{id}/{path}&token=your_token
返回类型JSON

返回示例

json
{
  "type": "fileList",
  "data": [
    {
      "name": "src",
      "isDirectory": true
    },
    {
      "name": "main.py",
      "isDirectory": false
    },
    ...
  ]
}