Merge branch 'frodo-dev' of https://github.com/robweber/xbmcbackup into dropbox

This commit is contained in:
robweber
2012-11-05 10:54:30 -06:00
3 changed files with 6 additions and 1 deletions

View File

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