Skip to content

fs.lstat not recognizing symbolic link #4178

Closed
@kklas

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions