1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-11-25 22:32:52 +02:00

fixing loading sign error

This commit is contained in:
Patrik Braun
2017-07-21 19:14:22 +02:00
parent cd3e773018
commit e9b5758909
9 changed files with 25 additions and 22 deletions

View File

@@ -41,6 +41,7 @@ export class DiskMangerWorker {
lastModified: Math.max(stat.ctime.getTime(), stat.mtime.getTime()),
lastScanned: Date.now(),
directories: [],
isPartial: false,
photos: []
};
fs.readdir(absoluteDirectoryName, async (err, list) => {
@@ -57,6 +58,7 @@ export class DiskMangerWorker {
Config.Server.folderPreviewSize, true
);
d.lastScanned = 0; //it was not a fully scan
d.isPartial = true;
directory.directories.push(d);
} else if (DiskMangerWorker.isImage(fullFilePath)) {
directory.photos.push(<PhotoDTO>{