diff --git a/server/scanner.js b/server/scanner.js index 099c02d..c525fcb 100644 --- a/server/scanner.js +++ b/server/scanner.js @@ -184,9 +184,10 @@ function existsPromise(path) { } function convertNefToJpg(path, file) { - path = picturesPath + path; console.log("Converting " + path + "/" + file); + path = picturesPath + path; + return new Promise(function(resolve, reject) { fs.stat(path + "/" + file.replace(/\.nef$/i, ".jpg"), function(err, stats) { if (!err) {