跳到主要内容

获取文件目录

描述

云手机内支持通过shell命令获取指定目录下的文件及文件夹列表。

请求参数

参数名参数类型是否必填参数说明
filePathString文件夹路径

返回参数

名称说明
code0000 成功,1111 失败
fileList文件夹及文件列表
fileType文件夹及文件类型

请求示例

api sdk/UTIL/GET_FILE_DIRECTORY?filePath=/sdcard/

返回示例

{
"fileList": "[Music, Podcasts, Ringtones, Alarms, Notifications, Pictures, Movies, Download, DCIM, RC, Android, backups, location, System, iFly, .iFly, iFlyIME, Tencent, .UTSystemConfig, .7934039a, .gs_fs6, .gs_fs0, .pns, .gs_fs3, .vivo, .tbs, QQBrowser, xbrowser]",
"fileType": "[folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder, folder]",
"code": "0000"
}