Skip to content

Somehow support checking if a path exists while using fs.promises #39960

Closed as not planned
@bnb

Description

Is your feature request related to a problem? Please describe.

Presently, fs.exists is deprecated and fs.existsSync is only available if you're not using promises. The exists check is absolutely useful, and it would be really useful to have it available in the fs.promises API.

Describe the solution you'd like

fs.promises,exists or fs.promises.existsSync should work.

Describe alternatives you've considered

  • Status Quo: this leaves a weird and very unfortunate gap in our API.

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.fsIssues and PRs related to the fs subsystem / file system.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions