微信小游戏开发文档-小游戏文件API string FileSystemManager.rmdirSync(Object filePath)
由 Carrie 创建,✎﹏๓₯㎕ζั͡❦﹏﹏♛ 最后一次修改 2017-12-29
string FileSystemManager.rmdirSync(Object filePath)
FileSystemManager.rmdir 的同步版本
参数
Object filePath
要删除的目录路径
返回值
string errMsg
错误信息
errMsg 的合法值
值 | 说明 |
---|---|
fail no such file or directory ${dirPath} | 目录不存在 |
fail directory not empty | 目录不为空 |
fail permission denied, open ${dirPath} | 指定的 dirPath 路径没有写权限 |
以上内容是否对您有帮助: