fsPromises.symlink(target, path[, type])


创建符号链接。

🌐 Creates a symbolic link.

type 参数仅在 Windows 平台上使用,可以是 'dir''file''junction'。Windows 联接点要求目标路径必须为绝对路径。当使用 'junction' 时,target 参数会自动规范为绝对路径。

🌐 The type argument is only used on Windows platforms and can be one of 'dir', 'file', or 'junction'. Windows junction points require the destination path to be absolute. When using 'junction', the target argument will automatically be normalized to absolute path.