From 0d725d6fa0c5b5b35fbd008518d13a1a57a7de06 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 e95865db7fb200..01abd668c499b0 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -7973,6 +7973,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.