Only files should be treated as being existant.
This commit is contained in:
parent
32b4729305
commit
766c301a44
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user