FileSystemManager.readdir

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 路径没有读权限