From 64ae75252f9ac9e6de8e66412686968c4da5fff6 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Fri, 10 Oct 2014 08:50:29 -0500 Subject: [PATCH] some spacing --- resources/lib/backup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/backup.py b/resources/lib/backup.py index 1c1e2b1..eead643 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -71,7 +71,7 @@ class XbmcBackup: #get all the folders in the current root path dirs,files = self.remote_vfs.listdir(self.remote_base_path) - + for aDir in dirs: if(self.remote_vfs.exists(self.remote_base_path + aDir + "/xbmcbackup.val")): @@ -458,8 +458,9 @@ class XbmcBackup: if(total_backups > 0): #get a list of valid backup folders dirs = self.listBackups() - + if(len(dirs) > total_backups): + #remove backups to equal total wanted remove_num = 0 self.filesTotal = self.filesTotal + remove_num + 1