Working on path re-creation
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
caa0f104d4
commit
e9dc145812
@ -283,7 +283,7 @@ function processBlock(items) {
|
|||||||
asset.taken = asset.modified = date;
|
asset.taken = asset.modified = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
let dst = picturesPath + path + "thumbs/scaled/" + file;
|
let dst = picturesPath + path + "thumbs/" + file;
|
||||||
|
|
||||||
return exists(dst).then(function(exist) {
|
return exists(dst).then(function(exist) {
|
||||||
if (exist) {
|
if (exist) {
|
||||||
@ -429,7 +429,7 @@ function scanDir(parent, path) {
|
|||||||
}).then(function() {
|
}).then(function() {
|
||||||
return Promise.map(albums, function(album) {
|
return Promise.map(albums, function(album) {
|
||||||
if (album.hasAssets) {
|
if (album.hasAssets) {
|
||||||
return mkdir(album.path + "thumbs");
|
return mkdir(album.path + "thumbs/scaled");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user