diff --git a/src/main-process/file-recovery-service.js b/src/main-process/file-recovery-service.js index d1750ff9e..d60006b28 100644 --- a/src/main-process/file-recovery-service.js +++ b/src/main-process/file-recovery-service.js @@ -147,7 +147,7 @@ async function tryStatFile (path) { } async function copyFile (source, destination, mode) { - mkdirp.sync(Path.dirname(destination)) + await mkdirp(Path.dirname(destination)) return new Promise((resolve, reject) => { const readStream = fs.createReadStream(source) readStream