From e9dc145812920974a3a281db439a9f5baa354c7a Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Wed, 26 Sep 2018 16:01:26 -0700 Subject: [PATCH] Working on path re-creation Signed-off-by: James Ketrenos --- server/scanner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {