should clean up zip resources after extract

This commit is contained in:
Rob Weber 2014-08-01 14:03:03 -05:00
parent b3bbdd6911
commit 1255283f4d

View File

@ -279,6 +279,7 @@ class XbmcBackup:
#extract the zip file
zip_vfs = ZipFileSystem(xbmc.translatePath("special://temp/"+ self.restore_point),'r')
zip_vfs.extract(xbmc.translatePath("special://temp/"))
zip_vfs.cleanup()
#set the new remote vfs and fix xbmc path
self.remote_vfs = XBMCFileSystem(xbmc.translatePath("special://temp/" + self.restore_point.split(".")[0] + "/"))