mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +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)
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user