...
 
Commits (2)
......@@ -209,7 +209,10 @@ module.exports = function (options, plugins) {
function checkRenditionBacking() {
if (renditionsBacking) {
fs.mkdirSync(imageRootPathOnDisk, { recursive: true });
if (downloadExistingRendition) {
fs.mkdirSync(imageRootPathOnDisk, { recursive: true });
}
renditionsBacking.checkForRendition(renditionBackingConfig, (err, lastModifiedTime, data) => {
if (err || !data) {
generateRendition();
......@@ -331,7 +334,7 @@ module.exports = function (options, plugins) {
}
if (renditionsBacking) {
renditionsBacking.uploadRendition(renditionsBackingConfig, rendition);
renditionsBacking.uploadRendition(renditionBackingConfig, rendition);
}
};
......