From 766c301a44172bfb705287eb03d927a479db944a Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Fri, 11 May 2012 18:01:45 -0700 Subject: [PATCH] Only files should be treated as being existant. --- src/node/utils/Minify.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/node/utils/Minify.js b/src/node/utils/Minify.js index a16e480a..21715ba0 100644 --- a/src/node/utils/Minify.js +++ b/src/node/utils/Minify.js @@ -285,8 +285,10 @@ function statFile(filename, callback) { } else { callback(error); } - } else { + } else if (stats.isFile()) { callback(null, stats.mtime.getTime(), true); + } else { + callback(null, stats.mtime.getTime(), false); } }); }