mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-12-22 14:05:23 +01:00
fixes #20
This commit is contained in:
parent
77f138e159
commit
e600703c94
@ -155,6 +155,7 @@ class XbmcBackup:
|
||||
dirs,files = xbmcvfs.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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user