Skip to content

Commit dc34240

Browse files
committed
Change lstatSync to statSync to correctly resolve symlinks under client/static.
1 parent 1885c77 commit dc34240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils/file.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var fs = require('fs'),
44
// Read the contents of a dir. Adapted from https://gist.github.com/825583
55
exports.readDirSync = function(start) {
66
try {
7-
// Use lstat to resolve symlink if we are passed a symlink
8-
var stat = fs.lstatSync(start);
7+
// Use stat to resolve symlink if we are passed a symlink
8+
var stat = fs.statSync(start);
99
var found = {dirs: [], files: []}, total = 0, processed = 0;
1010
function isHidden(path){ return path.match(/(^_|^\.|~$)/); }
1111
function isDir(abspath) {

0 commit comments

Comments
 (0)