doc: ntfs junction points must link to directories
Fixes: https://github.com/nodejs/node/issues/40184 PR-URL: https://github.com/nodejs/node/pull/47907 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
b2f6eedb65
commit
ad7a9a1c79
@ -1596,7 +1596,8 @@ The `type` argument is only used on Windows platforms and can be one of `'dir'`,
|
|||||||
autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not
|
autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not
|
||||||
exist, `'file'` will be used. Windows junction points require the destination
|
exist, `'file'` will be used. Windows junction points require the destination
|
||||||
path to be absolute. When using `'junction'`, the `target` argument will
|
path to be absolute. When using `'junction'`, the `target` argument will
|
||||||
automatically be normalized to absolute path.
|
automatically be normalized to absolute path. Junction points on NTFS volumes
|
||||||
|
can only point to directories.
|
||||||
|
|
||||||
### `fsPromises.truncate(path[, len])`
|
### `fsPromises.truncate(path[, len])`
|
||||||
|
|
||||||
@ -4265,7 +4266,8 @@ It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is
|
|||||||
not a string, Node.js will autodetect `target` type and use `'file'` or `'dir'`.
|
not a string, Node.js will autodetect `target` type and use `'file'` or `'dir'`.
|
||||||
If the `target` does not exist, `'file'` will be used. Windows junction points
|
If the `target` does not exist, `'file'` will be used. Windows junction points
|
||||||
require the destination path to be absolute. When using `'junction'`, the
|
require the destination path to be absolute. When using `'junction'`, the
|
||||||
`target` argument will automatically be normalized to absolute path.
|
`target` argument will automatically be normalized to absolute path. Junction
|
||||||
|
points on NTFS volumes can only point to directories.
|
||||||
|
|
||||||
Relative targets are relative to the link's parent directory.
|
Relative targets are relative to the link's parent directory.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user