Skip to content

fs.stat and fsPromises.stat documentation do not indicate that throwIfNoEntry was added in Node version 25.7.0 #62185

@Justin-Nietzel

Description

@Justin-Nietzel

Affected URL(s)

https://nodejs.org/docs/latest/api/fs.html

Description of the problem

File system documentation does not indicate that this feature was added recently and can cause confusion.

fs.stat
fsPromises.stat

I don't have my development environment setup right now, otherwise I'd make a quick PR for this.
Changes should probably look something like this:

  - version:
    - v25.7.0
    pr-url: https://github.com/nodejs/node/pull/61178
    description: Accepts a `throwIfNoEntry` option to specify whether
                 an exception should be thrown if the entry does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions