mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 01:02:59 +01:00
Delete file when upload is finish
This commit is contained in:
parent
9b57ed3228
commit
c83b7f8d4f
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user