From a92d5e263aed96debcade6685db01c36eaee39bd Mon Sep 17 00:00:00 2001 From: Ricardo Tomasi Date: Tue, 14 May 2013 03:11:25 -0300 Subject: [PATCH] node v0.10 requires path arguments to be strings --- flour.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flour.coffee b/flour.coffee index a5175d9..d305e8e 100644 --- a/flour.coffee +++ b/flour.coffee @@ -88,7 +88,7 @@ flour = paths = [].concat(patterns) asyncMap(queue(), fs.stat, paths).awaitAll (err, stats) -> if stats then paths = stats.map (stat, i) -> - path.join(paths[i], '*' if stat.isDirectory()) + path.join(paths[i], if stat.isDirectory() then '*' else '') asyncMap(queue(), glob, paths).awaitAll (err, files) -> cb Array::concat.apply [], files