https://bugs.kde.org/show_bug.cgi?id=362479

martin.fr...@online.de <mr...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mr...@gmx.de

--- Comment #12 from martin.fr...@online.de <mr...@gmx.de> ---
I tried to investigate this bug and think that this is caused by inconsistent
behavior of unrar. I also submitted my findings to rarlab.

Independently of Ark, when using unrar to unpack an archive into a
target_directory that already contains the same subdirectory as the archive
(with all files/directories listed in the unrar-command), the archive will not
be unpacked to the target_directory, but to the first subdirectory
"target_directory/subdirectory".

Example Archive to reproduce:
dirA\A1.txt
dirA\A2.txt
dirB\B1.txt
dirB\B2.txt

Unpacking via "unrar x -kb -p- /home/user/archive.rar dirA dirB dirA/A1.txt
dirA/A2.txt dirB/B1.txt dirB/B2.txt /home/user/target_directory" will unpack
all files into "/home/user/target_directory/dirA"
Expected result: files should be unpacked to "/home/user/target_directory" and
not into the subdirectory "dirA".

By the way, everything works as expected when unpacking all directories and
files one by one so this could be a workaround in this case:
"unrar x -kb /home/user/archive.rar dirA /home/user/target_directory"
"unrar x -kb /home/user/archive.rar dirB /home/user/target_directory"
"unrar x -kb /home/user/archive.rar dirA/A1.txt /home/user/target_directory"
...

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to