mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
doc: fix a typo in fs.md
`fsPromises.ftruncate()` is neither documented nor exported. PR-URL: https://github.com/nodejs/node/pull/22635 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
f911e09ab4
commit
e24fc95398
@ -4749,7 +4749,7 @@ On Windows, opening an existing hidden file using the `'w'` flag (either
|
||||
through `fs.open()` or `fs.writeFile()` or `fsPromises.open()`) will fail with
|
||||
`EPERM`. Existing hidden files can be opened for writing with the `'r+'` flag.
|
||||
|
||||
A call to `fs.ftruncate()` or `fsPromises.ftruncate()` can be used to reset
|
||||
A call to `fs.ftruncate()` or `filehandle.truncate()` can be used to reset
|
||||
the file contents.
|
||||
|
||||
[`AHAFS`]: https://www.ibm.com/developerworks/aix/library/au-aix_event_infrastructure/
|
||||
|
Loading…
Reference in New Issue
Block a user