mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
It is ok if the directory doesn't exist.
This commit is contained in:
parent
e0930005c3
commit
3b2a3ad324
1 changed files with 5 additions and 1 deletions
|
@ -202,7 +202,11 @@ function statFile(filename, callback) {
|
|||
if (error.code == "ENOENT") { // Stat the directory instead.
|
||||
fs.stat(path.dirname(ROOT_DIR + filename), function (error, stats) {
|
||||
if (error) {
|
||||
callback(error);
|
||||
if (error.code == "ENOENT") {
|
||||
callback(null, null, false);
|
||||
} else {
|
||||
callback(error);
|
||||
}
|
||||
} else if (filename == 'js/require-kernel.js') {
|
||||
callback(null, stats.mtime.getTime(), true);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue