赛捷软件论坛's Archiver

vicky.yu 发表于 2026-6-1 11:11

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

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.