# FileSystemManager.rmdirSync(string dirPath, boolean recursive)

The synchronous version of FileSystemManager.rmdir.

# Parameters

# string dirPath

The path to the directory to be deleted.

# boolean recursive

Start from base library version 2.3.0. Please remaining backward compatible.

Indicates whether to recursively delete the directory. If the value is true, the directory and all subdirectories and files under the directory are deleted.

# Errors

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