mirror of
				https://github.com/SimpleMobileTools/Simple-File-Manager.git
				synced 2025-06-05 22:09:15 +02:00 
			
		
		
		
	extract zip to correct path
This commit is contained in:
		| @@ -426,10 +426,12 @@ class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem | ||||
|             try { | ||||
|                 val zipFile = ZipFile(it) | ||||
|                 val entries = zipFile.entries() | ||||
|                 val zipFileName = it.getFilenameFromPath() | ||||
|                 val newFolderName = zipFileName.subSequence(0, zipFileName.length-4) | ||||
|                 while (entries.hasMoreElements()) { | ||||
|                     val entry = entries.nextElement() | ||||
|                     val parentPath = it.getParentPath() | ||||
|                     val newPath = "$parentPath${entry.name.trimEnd('/')}" | ||||
|                     val newPath = "$parentPath/$newFolderName/${entry.name.trimEnd('/')}" | ||||
|  | ||||
|                     val resolution = getConflictResolution(conflictResolutions, newPath) | ||||
|                     val doesPathExist = File(newPath).exists() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user