Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

fs.stat('symlink').isSymbolicLink() returns false #153

@rentzsch

Description

@rentzsch
# touch myfile
# ln -s myfile mylink
# ls -l
total 0
-rw-r--r-- 1 root root 0 2010-05-15 10:40 myfile
lrwxrwxrwx 1 root root 6 2010-05-15 10:40 mylink -> myfile
# node-repl
node> require('fs').statSync('mylink').isSymbolicLink();
false
node> require('fs').stat('mylink',function(err,stat){sys.puts(stat.isSymbolicLink());});
node> false

Reproduced on Linux (Debian 5 Lenny) and Mac OS X (10.6.3) against node v0.1.95.

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