From 0056cb93e9d0135fb210ee060217c70c7533677e Mon Sep 17 00:00:00 2001 From: sinkhaha <1468709106@qq.com> Date: Sat, 17 Jun 2023 03:40:01 +0800 Subject: [PATCH] doc: update fs flags documentation PR-URL: https://github.com/nodejs/node/pull/48463 Fixes: https://github.com/nodejs/node/issues/48452 Reviewed-By: Antoine du Hamel Reviewed-By: LiviaMedeiros Reviewed-By: Luigi Pinca Reviewed-By: Mestery Reviewed-By: Mohammed Keyvanzadeh --- doc/api/fs.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index 8cc6aba48528ba..ab5728b67ff8b2 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -7877,6 +7877,9 @@ string. * `'r'`: Open file for reading. An exception occurs if the file does not exist. +* `'rs'`: Open file for reading in synchronous mode. + An exception occurs if the file does not exist. + * `'r+'`: Open file for reading and writing. An exception occurs if the file does not exist.