Skip to content

Commit

Permalink
doc: improve explanation for directory with fs.rename()
Browse files Browse the repository at this point in the history
PR-URL: #27963
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
  • Loading branch information
Trott authored and targos committed Jun 2, 2019
1 parent 89483be commit c683cd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2898,7 +2898,8 @@ changes:

Asynchronously rename file at `oldPath` to the pathname provided
as `newPath`. In the case that `newPath` already exists, it will
be overwritten. No arguments other than a possible exception are
be overwritten. If there is a directory at `newPath`, an error will
be raised instead. No arguments other than a possible exception are
given to the completion callback.

See also: rename(2).
Expand Down

0 comments on commit c683cd9

Please sign in to comment.