-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Description
As far as I can tell, neither fs.read
nor FileHandle#read
specify how to detect when the end of a file has been reached, nor can I find this information elsewhere in the fs
documentation.
The fs.createReadStream
implementation suggests that the answer to this question is "when bytesRead
is 0", but this should be added to the documentation if that is indeed the correct way to detect this condition.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.