doc: fix fs.symlink
code example
Fixes: https://github.com/nodejs/node/issues/40413 PR-URL: https://github.com/nodejs/node/pull/40414 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
parent
816e92e696
commit
ced518c61a
@ -3756,15 +3756,15 @@ Relative targets are relative to the link’s parent directory.
|
||||
```mjs
|
||||
import { symlink } from 'fs';
|
||||
|
||||
symlink('./mew', './example/mewtwo', callback);
|
||||
symlink('./mew', './mewtwo', callback);
|
||||
```
|
||||
|
||||
The above example creates a symbolic link `mewtwo` in the `example` which points
|
||||
to `mew` in the same directory:
|
||||
The above example creates a symbolic link `mewtwo` which points to `mew` in the
|
||||
same directory:
|
||||
|
||||
```bash
|
||||
$ tree example/
|
||||
example/
|
||||
$ tree .
|
||||
.
|
||||
├── mew
|
||||
└── mewtwo -> ./mew
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user