FileSystemManager.readdir

2020-02-14 13:45 更新

FileSystemManager.readdir(Object object)

读取目录内文件列表


输入

继承标准对象输入,扩展属性描述:

属性类型默认值是否必填说明
dirPathstring要读取的目录路径

success 回调函数参数 Object

属性类型说明支持版本
filesArray.<string>指定目录下的文件名数组。

fail 回调函数参数 Object

属性类型说明
errMsgstring错误信息
说明
fail no such file or directory ${dirPath}目录不存在
fail not a directory ${dirPath}dirPath 不是目录
fail permission denied, open ${dirPath}指定的 filePath 路径没有读权限


以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号