fsPromises.symlink(target, path[, type])
创建符号链接。
target
<string> | <Buffer> | <URL>path
<string> | <Buffer> | <URL>type
<string> Default:'file'
- Returns: <Promise> Fulfills with
undefined
upon success.
Creates a symbolic link.
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.