mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-01-30 02:05:00 +01:00
create a new folder at decompressing
This commit is contained in:
parent
031904283f
commit
a14919d6d9
@ -99,9 +99,10 @@ class DecompressActivity : SimpleActivity() {
|
||||
zipInputStream.use {
|
||||
while (true) {
|
||||
val entry = zipInputStream.nextEntry ?: break
|
||||
val newPath = "$destination/${entry.name}"
|
||||
val fos = getFileOutputStreamSync(newPath, newPath.getMimeType())
|
||||
val filename = title.toString().substringBeforeLast(".")
|
||||
val newPath = "$destination/$filename/${entry.name.trimEnd('/')}"
|
||||
|
||||
val fos = getFileOutputStreamSync(newPath, newPath.getMimeType())
|
||||
var count: Int
|
||||
while (true) {
|
||||
count = zipInputStream.read(buffer)
|
||||
|
Loading…
x
Reference in New Issue
Block a user