Skip to content

Commit c683cd9

Browse files
Trotttargos
authored andcommitted
doc: improve explanation for directory with fs.rename()
PR-URL: #27963 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]>
1 parent 89483be commit c683cd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/fs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2898,7 +2898,8 @@ changes:
28982898

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

29042905
See also: rename(2).

0 commit comments

Comments
 (0)