Skip to content

Commit

Permalink
Use stat instead of lstat to support symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriangalliat committed Sep 2, 2014
1 parent 1df83ed commit 22a9b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.js
Expand Up @@ -167,7 +167,7 @@ exports = module.exports = {
* @return {Boolean} * @return {Boolean}
*/ */
isDirectory: function (path) { isDirectory: function (path) {
return fs.lstatSync(path).isDirectory(); return fs.statSync(path).isDirectory();
}, },


/** /**
Expand Down

0 comments on commit 22a9b79

Please sign in to comment.