Skip to content

FileSystemManager.unlinkSync

JS
    FileSystemManager.unlinkSync(string path)

删除文件

FileSystemManager.unlink 的同步版本

参数

  • string filePath: 要删除的文件路径

捕获异常的参数

  • string error: 返回错误信息,具体合法值见下图

error 的合法值说明:

错误信息说明
no such file or directory文件不存在