mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Only files should be treated as being existant.
This commit is contained in:
parent
32b4729305
commit
766c301a44
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue