From e7ca3987a2d88cee3523abe72e38f1ddc6cb13db Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 2 Jun 2019 11:20:48 +0200 Subject: doc: improve explanation for directory with fs.rename() PR-URL: https://github.com/nodejs/node/pull/27963 Reviewed-By: Rich Trott Reviewed-By: Yongsheng Zhang --- doc/api/fs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/api/fs.md') diff --git a/doc/api/fs.md b/doc/api/fs.md index 581af57403..d2506d28e3 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -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). -- cgit v1.2.3