show notification if files failed to copy

This commit is contained in:
Rob Weber
2014-10-31 09:56:02 -05:00
parent f41f37782d
commit 2fc26b6e8c
3 changed files with 7 additions and 1 deletions

View File

@ -244,7 +244,11 @@ class XbmcBackup:
for fileGroup in allFiles:
self.xbmc_vfs.set_root(fileGroup['source'])
self.remote_vfs.set_root(fileGroup['dest'])
self.backupFiles(fileGroup['files'],self.xbmc_vfs,self.remote_vfs)
filesCopied = self.backupFiles(fileGroup['files'],self.xbmc_vfs,self.remote_vfs)
if(not filesCopied):
utils.showNotification(utils.getString(30092))
utils.log(utils.getString(30092))
#reset remote and xbmc vfs
self.xbmc_vfs.set_root("special://home/")