Skip to content

exists doesn't respect relative symlinks #414

@timvahlbrock

Description

@timvahlbrock

In the example for creating symlinks in the README, one would expect that fs.existsSync("/some/dir/a-symlink") returns true, but it actually returns false, because exists expects absolute symlink paths. It probably needs a path.resolve, like the open implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions