跳到主要内容

獲取檔案目錄

描述

雲手機內支援透過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"
}