mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-12-22 14:05:23 +01:00
should clean up zip resources after extract
This commit is contained in:
parent
b3bbdd6911
commit
1255283f4d
@ -279,7 +279,8 @@ 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] + "/"))
|
||||
self.xbmc_vfs.set_root(xbmc.translatePath("special://home"))
|
||||
|
Loading…
Reference in New Issue
Block a user