File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -748,8 +748,8 @@ An exception occurs if the file does not exist.
748
748
* ` 'r+' ` - Open file for reading and writing.
749
749
An exception occurs if the file does not exist.
750
750
751
- * ` 'rs' ` - Open file for reading in synchronous mode. Instructs the operating
752
- system to bypass the local file system cache.
751
+ * ` 'rs+ ' ` - Open file for reading and writing in synchronous mode. Instructs
752
+ the operating system to bypass the local file system cache.
753
753
754
754
This is primarily useful for opening files on NFS mounts as it allows you to
755
755
skip the potentially stale local cache. It has a very real impact on I/O
@@ -758,9 +758,6 @@ An exception occurs if the file does not exist.
758
758
Note that this doesn't turn ` fs.open() ` into a synchronous blocking call.
759
759
If that's what you want then you should be using ` fs.openSync() `
760
760
761
- * ` 'rs+' ` - Open file for reading and writing, telling the OS to open it
762
- synchronously. See notes for ` 'rs' ` about using this with caution.
763
-
764
761
* ` 'w' ` - Open file for writing.
765
762
The file is created (if it does not exist) or truncated (if it exists).
766
763
You can’t perform that action at this time.
0 commit comments