We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 979c609 commit a240753Copy full SHA for a240753
src/server/LevelDBLib.js
@@ -42,7 +42,7 @@ export default class LevelDBLib {
42
const pages = getDirectories(path).map(p => LevelDBLib.unescapeNamespace(p.split(sep)[1]));
43
return pages.reduce((accumulator, p) => {
44
const dbPath = join(path, LevelDBLib.escapeNamespace(p));
45
- const directoryCreated = lstatSync(dbPath).mtime;
+ const directoryCreated = lstatSync(dbPath).ctime; // Not correct on Linux
46
const latestFileModified = new Date(Math.max(...readdirSync(dbPath).map(name => join(dbPath, name)).map(f => lstatSync(f).mtimeMs)));
47
return Object.assign(accumulator, {
48
[p]: {
0 commit comments