From 7063655fb089abe198932ed1f36b3493831fe7c4 Mon Sep 17 00:00:00 2001 From: Naitik Shah Date: Wed, 17 Nov 2010 22:28:34 -0800 Subject: [PATCH] include stat response in events --- lib/walker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/walker.js b/lib/walker.js index 559ddef..828be9c 100644 --- a/lib/walker.js +++ b/lib/walker.js @@ -58,7 +58,7 @@ Walker.prototype.go = function(target) { return } - that.emit('dir', target) + that.emit('dir', target, stat) files.forEach(function(part) { that.go(path.join(target, part)) }) @@ -66,7 +66,7 @@ Walker.prototype.go = function(target) { }) } } else { - that.emit('file', target) + that.emit('file', target, stat) that.doneOne() } })