As seen here an error is thrown if you attempt to lstat() a file that is not a symbolic link. That doesn't appear to be the correct behavior. According to the fs.lstat documentation:
Asynchronous lstat(2). The callback gets two arguments (err, stats) where stats is a fs.Stats object.
lstat() is identical to stat(), except that if path is a symbolic link, then the link itself is stat-ed, not the
file that it refers to.
The result for a non-symbolic link should be the same as stat().
I am not sure if this is an issue with any other method.
As seen here an error is thrown if you attempt to lstat() a file that is not a symbolic link. That doesn't appear to be the correct behavior. According to the fs.lstat documentation:
The result for a non-symbolic link should be the same as stat().
I am not sure if this is an issue with any other method.