# Array.<string> FileSystemManager.readdirSync(string dirPath)

The synchronous version of FileSystemManager.readdir.

# Parameters

# string dirPath

Path to the directory to be read

# Return Values

# Array.<string> files

The array of file names in the specified directory.

# Errors

Error Code Error Message Description
fail no such file or directory ${dirPath} Directory does not exist
fail not a directory ${dirPath} dirPath is not a directory
fail permission denied, open ${dirPath} No read permission on the specified filePath
点击咨询小助手