Delete file when upload is finish

This commit is contained in:
Sebastien Clement 2019-12-28 17:34:01 +01:00
parent 9b57ed3228
commit c83b7f8d4f

View File

@ -152,6 +152,7 @@ class WebdavTools {
status.last_backup = moment().format("lll")
statusTools.setStatus(status);
fs.unlinkSync('./temp/' + id + '.tar')
resolve();
}).catch((err) => {
status.status = "error";