Bug 410563

Summary: unselected folder unpacked as well
Product: [Applications] ark Reporter: Axel Braun <axel.braun>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED WORKSFORME    
Severity: normal CC: rthomsen6
Priority: NOR    
Version First Reported In: 18.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Axel Braun 2019-08-04 08:58:12 UTC
In a zip archive, I have three folder:
root folder
|- folder 1
|- folder 2

I mark folder 1 and 2 and select 'unpack' -> only selected files and 'keep path on unpack'

Result:
all folders as above are unpacked

expected result:
folder 1 and 2 with its content are unpacked

Is this a bug or is my expectation wrong?
Comment 1 2wxsy58236r3 2019-08-04 10:58:55 UTC
I think this is correct behavior.

Consider the following archive.

My-Folder
|- lorem.txt
|- ipsum.txt

Let's say you extract (and have only selected) "lorem.txt" to /tmp.

If you have checked "keep path on unpack", then Ark keeps the folder structure, 
so you will get /tmp/My-Folder/lorem.txt.

If you have not checked "keep path on unpack", then Ark does not keep the folder structure, and you will get /tmp/lorem.txt.