fsPromises.unlink(path)


如果 path 指向符号链接,则删除该链接,但不影响链接所指向的文件或目录。 如果 path 指向的文件路径不是符号链接,则删除文件。 有关更多详细信息,请参阅 POSIX unlink(2) 文档。

If path refers to a symbolic link, then the link is removed without affecting the file or directory to which that link refers. If the path refers to a file path that is not a symbolic link, the file is deleted. See the POSIX unlink(2) documentation for more detail.