Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! Added function to remove directory.
  • Loading branch information
dustinnewman committed Feb 18, 2018
commit 82b486cb9407e5f00b0017466dbf780dc6ef7e61
2 changes: 1 addition & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2760,7 +2760,7 @@ fs.unlink('path/file.txt', (err) => {
});
```

`fs.unlink()` will not work on a directory, empty or otherwise.
`fs.unlink()` will not work on a directory, empty or otherwise. To remove a directory, use `fs.rmdir()`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to actually make this a link. Most functions are already listed but rmdir does not seem to be one of those. So please add the entry at the bottom of the file and write here:

[`fs.rmdir()`][]


```js
// Assuming that 'tmpDir' is a directory.
Expand Down