This commit is contained in:
robweber 2012-11-02 15:24:45 -05:00
parent 77f138e159
commit e600703c94

View File

@ -155,6 +155,7 @@ class XbmcBackup:
dirs,files = xbmcvfs.listdir(self.remote_root) dirs,files = xbmcvfs.listdir(self.remote_root)
if(len(dirs) > total_backups): if(len(dirs) > total_backups):
#remove backups to equal total wanted #remove backups to equal total wanted
dirs.sort()
remove_num = len(dirs) - total_backups - 1 remove_num = len(dirs) - total_backups - 1
self.filesTotal = self.filesTotal + remove_num + 1 self.filesTotal = self.filesTotal + remove_num + 1