Skip to content

fs.lstat not recognizing symbolic link #4178

Description

@kklas

When I use fs.lstat on a symlink to a directory with a slash appended on the end of the path like this: fs.lstat('directory/', function(err, stat) {....
stat.isSymbolicLink() returns false and .isDirectory() returns true.

Without the slash (eg. 'directory') it reports the link like I would expect it to.
This is v5.1.1 on linux.

Is this normal behavior?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to file-system APIs and the fs module.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions