doc: improve explanation for directory with fs.rename()

PR-URL: https://github.com/nodejs/node/pull/27963
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
This commit is contained in:
Rich Trott 2019-06-02 11:20:48 +02:00
parent 5539d7e360
commit e7ca3987a2

View File

@ -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).