From 51f2ef3973e3e8a5301c79accd626155a73f0e3d Mon Sep 17 00:00:00 2001 From: Wuff <40003252+AnonTester@users.noreply.github.com> Date: Mon, 30 Dec 2019 15:59:03 +0000 Subject: [PATCH] Fix deleting old backups on remote drives + log error (#163) --- resources/lib/backup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/backup.py b/resources/lib/backup.py index a175a50..65d036f 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -395,7 +395,7 @@ class XbmcBackup: for aFile in fileList: if(not self.progressBar.checkCancel()): if(utils.getSettingBool('verbose_logging')): - utils.log('Writing file: ' + aFile) + utils.log('Writing file: ' + aFile['file']) if(aFile['file'].startswith("-")): self._updateProgress('%s remaining, writing %s' % (utils.diskString(self.transferLeft), os.path.basename(aFile['file'][len(source.root_path):]) + "/")) @@ -465,9 +465,9 @@ class XbmcBackup: if(dirs[remove_num][0].split('.')[-1] == 'zip'): # this is a file, remove it that way - self.remote_vfs.rmfile(self.remote_base_path + dirs[remove_num][0]) + self.remote_vfs.rmfile(self.remote_vfs.root_path + dirs[remove_num][0]) else: - self.remote_vfs.rmdir(self.remote_base_path + dirs[remove_num][0] + "/") + self.remote_vfs.rmdir(self.remote_vfs.root_path + dirs[remove_num][0] + "/") remove_num = remove_num + 1