We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0319042 commit a14919dCopy full SHA for a14919d
app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/DecompressActivity.kt
@@ -99,9 +99,10 @@ class DecompressActivity : SimpleActivity() {
99
zipInputStream.use {
100
while (true) {
101
val entry = zipInputStream.nextEntry ?: break
102
- val newPath = "$destination/${entry.name}"
103
- val fos = getFileOutputStreamSync(newPath, newPath.getMimeType())
+ val filename = title.toString().substringBeforeLast(".")
+ val newPath = "$destination/$filename/${entry.name.trimEnd('/')}"
104
105
+ val fos = getFileOutputStreamSync(newPath, newPath.getMimeType())
106
var count: Int
107
108
count = zipInputStream.read(buffer)
0 commit comments