Only files should be treated as being existant.

This commit is contained in:
Chad Weider 2012-05-11 18:01:45 -07:00
parent 32b4729305
commit 766c301a44

View file

@ -285,8 +285,10 @@ function statFile(filename, callback) {
} else { } else {
callback(error); callback(error);
} }
} else { } else if (stats.isFile()) {
callback(null, stats.mtime.getTime(), true); callback(null, stats.mtime.getTime(), true);
} else {
callback(null, stats.mtime.getTime(), false);
} }
}); });
} }