We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1885c77 commit dc34240Copy full SHA for dc34240
lib/utils/file.js
@@ -4,8 +4,8 @@ var fs = require('fs'),
4
// Read the contents of a dir. Adapted from https://gist.github.com/825583
5
exports.readDirSync = function(start) {
6
try {
7
- // Use lstat to resolve symlink if we are passed a symlink
8
- var stat = fs.lstatSync(start);
+ // Use stat to resolve symlink if we are passed a symlink
+ var stat = fs.statSync(start);
9
var found = {dirs: [], files: []}, total = 0, processed = 0;
10
function isHidden(path){ return path.match(/(^_|^\.|~$)/); }
11
function isDir(abspath) {
0 commit comments