mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
doc: clarify ERR_FS_FILE_TOO_LARGE to reflect fs.readFile() I/O limit
PR-URL: https://github.com/nodejs/node/pull/59050 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name>
This commit is contained in:
parent
01af8acf1e
commit
9f486c35fc
1 changed files with 4 additions and 2 deletions
|
@ -1362,8 +1362,10 @@ Path is a directory.
|
|||
|
||||
### `ERR_FS_FILE_TOO_LARGE`
|
||||
|
||||
An attempt has been made to read a file whose size is larger than the maximum
|
||||
allowed size for a `Buffer`.
|
||||
An attempt was made to read a file larger than the supported 2 GiB limit for
|
||||
`fs.readFile()`. This is not a limitation of `Buffer`, but an internal I/O constraint.
|
||||
For handling larger files, consider using `fs.createReadStream()` to read the
|
||||
file in chunks.
|
||||
|
||||
<a id="ERR_FS_WATCH_QUEUE_OVERFLOW"></a>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue