mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +01:00
should clean up zip resources after extract
This commit is contained in:
parent
b3bbdd6911
commit
1255283f4d
@ -279,6 +279,7 @@ class XbmcBackup:
|
|||||||
#extract the zip file
|
#extract the zip file
|
||||||
zip_vfs = ZipFileSystem(xbmc.translatePath("special://temp/"+ self.restore_point),'r')
|
zip_vfs = ZipFileSystem(xbmc.translatePath("special://temp/"+ self.restore_point),'r')
|
||||||
zip_vfs.extract(xbmc.translatePath("special://temp/"))
|
zip_vfs.extract(xbmc.translatePath("special://temp/"))
|
||||||
|
zip_vfs.cleanup()
|
||||||
|
|
||||||
#set the new remote vfs and fix xbmc path
|
#set the new remote vfs and fix xbmc path
|
||||||
self.remote_vfs = XBMCFileSystem(xbmc.translatePath("special://temp/" + self.restore_point.split(".")[0] + "/"))
|
self.remote_vfs = XBMCFileSystem(xbmc.translatePath("special://temp/" + self.restore_point.split(".")[0] + "/"))
|
||||||
|
Loading…
Reference in New Issue
Block a user