summaryrefslogtreecommitdiff
path: root/doc/api/fs.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/fs.md')
-rw-r--r--doc/api/fs.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md
index 0d17c5deb4..a045f45418 100644
--- a/doc/api/fs.md
+++ b/doc/api/fs.md
@@ -231,6 +231,7 @@ fs.readFileSync(new URL('file:///p/a/t/h/%2f'));
/* TypeError [ERR_INVALID_FILE_URL_PATH]: File URL path must not include encoded
/ characters */
```
+
On Windows, `file:` URLs having encoded backslash will result in a throw:
```js
@@ -3815,6 +3816,7 @@ recommended.
When `file` is a file descriptor, the behavior is almost identical to directly
calling `fs.write()` like:
+
```javascript
fs.write(fd, Buffer.from(data, options.encoding), callback);
```