Permalink
Browse files

Use `stat` instead of `lstat` to support symlinks

  • Loading branch information...
valeriangalliat committed Sep 2, 2014
1 parent 1df83ed commit 22a9b7986e1eef2bf962bb9b1a48467d257ee398
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/file.js
View
@@ -167,7 +167,7 @@ exports = module.exports = {
* @return {Boolean}
*/
isDirectory: function (path) {
- return fs.lstatSync(path).isDirectory();
+ return fs.statSync(path).isDirectory();
},
/**

0 comments on commit 22a9b79

Please sign in to comment.