Skip to content
This repository was archived by the owner on Nov 14, 2018. It is now read-only.
This repository was archived by the owner on Nov 14, 2018. It is now read-only.

Use fs.statSync? #2

Closed
Closed
@joliss

Description

@joliss

Currently, fs.existsSync is implemented in terms of fs.statSync. I think this module can copy that logic and be much simpler as a result.

statSync already follows symlinks automatically and throws an ENOENT error on broken symlinks, unlike lstatSync, so no special handling is needed for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions