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
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
});
}