diff --git a/server/scanner.js b/server/scanner.js index c8c1638..0d04674 100755 --- a/server/scanner.js +++ b/server/scanner.js @@ -283,7 +283,7 @@ function processBlock(items) { asset.taken = asset.modified = date; } - let dst = picturesPath + path + "thumbs/scaled/" + file; + let dst = picturesPath + path + "thumbs/" + file; return exists(dst).then(function(exist) { if (exist) { @@ -429,7 +429,7 @@ function scanDir(parent, path) { }).then(function() { return Promise.map(albums, function(album) { if (album.hasAssets) { - return mkdir(album.path + "thumbs"); + return mkdir(album.path + "thumbs/scaled"); } }); }).then(function() {