mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-06 13:24:09 +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 {
|
zipInputStream.use {
|
||||||
while (true) {
|
while (true) {
|
||||||
val entry = zipInputStream.nextEntry ?: break
|
val entry = zipInputStream.nextEntry ?: break
|
||||||
val newPath = "$destination/${entry.name}"
|
val filename = title.toString().substringBeforeLast(".")
|
||||||
val fos = getFileOutputStreamSync(newPath, newPath.getMimeType())
|
val newPath = "$destination/$filename/${entry.name.trimEnd('/')}"
|
||||||
|
|
||||||
|
val fos = getFileOutputStreamSync(newPath, newPath.getMimeType())
|
||||||
var count: Int
|
var count: Int
|
||||||
while (true) {
|
while (true) {
|
||||||
count = zipInputStream.read(buffer)
|
count = zipInputStream.read(buffer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user