💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# .readdirSync ### Array.<string> FileSystemManager.readdirSync(string dirPath) FileSystemManager.readdir 的同步版本 #### 参数 ##### string dirPath 要读取的目录路径 #### 返回值 ##### Array.<string> files 指定目录下的文件名数组。 #### 错误 错误码错误信息说明fail no such file or directory ${dirPath}目录不存在fail not a directory ${dirPath}dirPath 不是目录fail permission denied, open ${dirPath}指定的 filePath 路径没有读权限> 原文: <https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.readdirSync.html>