fix #260, properly decompress SD card files
This commit is contained in:
parent
3ee6bbe911
commit
457da971ab
|
@ -348,7 +348,12 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
|
|||
val entries = zipFile.entries()
|
||||
while (entries.hasMoreElements()) {
|
||||
val entry = entries.nextElement()
|
||||
val newPath = "${it.getParentPath()}${entry.name}"
|
||||
var parentPath = it.getParentPath()
|
||||
if (parentPath != OTG_PATH) {
|
||||
parentPath = "${parentPath.trimEnd('/')}/"
|
||||
}
|
||||
|
||||
val newPath = "$parentPath${entry.name.trimEnd('/')}"
|
||||
|
||||
val resolution = getConflictResolution(conflictResolutions, newPath)
|
||||
val doesPathExist = activity.getDoesFilePathExist(newPath)
|
||||
|
|
Loading…
Reference in New Issue