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:
parent
5539d7e360
commit
e7ca3987a2
@ -2898,7 +2898,8 @@ changes:
|
|||||||
|
|
||||||
Asynchronously rename file at `oldPath` to the pathname provided
|
Asynchronously rename file at `oldPath` to the pathname provided
|
||||||
as `newPath`. In the case that `newPath` already exists, it will
|
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.
|
given to the completion callback.
|
||||||
|
|
||||||
See also: rename(2).
|
See also: rename(2).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user