参数 existingPath 和 newPath 可以是使用 file: 协议的 WHATWG URL 对象。支持目前仍处于试验阶段。
existingPath
newPath
file:
URL
新增于: v0.1.31
existingPath <string> | <Buffer> | <URL>
newPath <string> | <Buffer> | <URL>
创建从 existingPath 到 newPath 的新链接。有关更多详细信息,请参阅 POSIX link(2) 文档。返回 undefined。
link(2)
undefined
¥Creates a new link from the existingPath to the newPath. See the POSIX link(2) documentation for more detail. Returns undefined.