fix #260, properly decompress SD card files

This commit is contained in:
tibbi 2018-09-10 19:49:38 +02:00
parent 3ee6bbe911
commit 457da971ab
1 changed files with 6 additions and 1 deletions

View File

@ -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)