mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 09:12:58 +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")
|
status.last_backup = moment().format("lll")
|
||||||
|
|
||||||
statusTools.setStatus(status);
|
statusTools.setStatus(status);
|
||||||
|
fs.unlinkSync('./temp/' + id + '.tar')
|
||||||
resolve();
|
resolve();
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
status.status = "error";
|
status.status = "error";
|
||||||
|
Loading…
Reference in New Issue
Block a user