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 a14919d commit 09345dbCopy full SHA for 09345db
app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/DecompressActivity.kt
@@ -100,7 +100,18 @@ class DecompressActivity : SimpleActivity() {
100
while (true) {
101
val entry = zipInputStream.nextEntry ?: break
102
val filename = title.toString().substringBeforeLast(".")
103
- val newPath = "$destination/$filename/${entry.name.trimEnd('/')}"
+ val parent = "$destination/$filename"
104
+ val newPath = "$parent/${entry.name.trimEnd('/')}"
105
+
106
+ if (!getDoesFilePathExist(parent)) {
107
+ if (!createDirectorySync(parent)) {
108
+ continue
109
+ }
110
111
112
+ if (entry.isDirectory) {
113
114
115
116
val fos = getFileOutputStreamSync(newPath, newPath.getMimeType())
117
var count: Int
0 commit comments