GeezerVison is showing github.com — doc: ntfs junction points must link to directories · nodejs/node@bf39f2d
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/fs.md +4-2Lines changed: 4 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1596,7 +1596,8 @@ The `type` argument is only used on Windows platforms and can be one of `'dir'`, |
1596 | 1596 | autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not |
1597 | 1597 | exist, `'file'` will be used. Windows junction points require the destination |
1598 | 1598 | path to be absolute. When using `'junction'`, the `target` argument will |
1599 | | -automatically be normalized to absolute path. |
| 1599 | +automatically be normalized to absolute path. Junction points on NTFS volumes |
| 1600 | +can only point to directories. |
1600 | 1601 |
|
1601 | 1602 | ### `fsPromises.truncate(path[, len])` |
1602 | 1603 |
|
@@ -4265,7 +4266,8 @@ It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is |
4265 | 4266 | not a string, Node.js will autodetect `target` type and use `'file'` or `'dir'`. |
4266 | 4267 | If the `target` does not exist, `'file'` will be used. Windows junction points |
4267 | 4268 | require the destination path to be absolute. When using `'junction'`, the |
4268 | | -`target` argument will automatically be normalized to absolute path. |
| 4269 | +`target` argument will automatically be normalized to absolute path. Junction |
| 4270 | +points on NTFS volumes can only point to directories. |
4269 | 4271 |
|
4270 | 4272 | Relative targets are relative to the link's parent directory. |
4271 | 4273 |
|
|