mirror of
				https://github.com/robweber/xbmcbackup.git
				synced 2025-10-30 17:11:03 +01:00 
			
		
		
		
	delete old file, if it exists
This commit is contained in:
		| @@ -115,6 +115,10 @@ class XbmcBackup: | |||||||
|         progressBarTitle = utils.getString(30010) + " - " |         progressBarTitle = utils.getString(30010) + " - " | ||||||
|         if(mode == self.Backup and self.remote_vfs.root_path != ''): |         if(mode == self.Backup and self.remote_vfs.root_path != ''): | ||||||
|             if(utils.getSetting("compress_backups") == 'true'): |             if(utils.getSetting("compress_backups") == 'true'): | ||||||
|  |                 #delete old temp file | ||||||
|  |                 if(self.xbmc_vfs.exists(xbmc.translatePath('special://temp/xbmc_backup_temp.zip'))): | ||||||
|  |                     self.xbmc_vfs.rmfile(xbmc.translatePath('special://temp/xbmc_backup_temp.zip')) | ||||||
|  |                      | ||||||
|                 #save the remote file system and use the zip vfs |                 #save the remote file system and use the zip vfs | ||||||
|                 self.saved_remote_vfs = self.remote_vfs |                 self.saved_remote_vfs = self.remote_vfs | ||||||
|                 self.remote_vfs = ZipFileSystem(xbmc.translatePath("special://temp/xbmc_backup_temp.zip"),"w") |                 self.remote_vfs = ZipFileSystem(xbmc.translatePath("special://temp/xbmc_backup_temp.zip"),"w") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Rob Weber
					Rob Weber