[ark] [Bug 362479] [unrar] Ark extracts files into wrong subdirectory when subdirectories of same name are present

2022-06-01 Thread martin . frueh
https://bugs.kde.org/show_bug.cgi?id=362479

martin.fr...@online.de  changed:

   What|Removed |Added

Version|15.12.3 |22.04.1

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

[ark] [Bug 362479] [unrar] Ark extracts files into wrong subdirectory when subdirectories of same name are present

2022-06-01 Thread martin . frueh
https://bugs.kde.org/show_bug.cgi?id=362479

--- Comment #13 from martin.fr...@online.de  ---
After feedback by rarlab, this issue is caused by a missing trailing backslash
for the target directory. 
Since ark doesn't add a trailing slash for the target directory, unrar can't be
sure that it is the target directory. So it checks if any of the specified
parameters is an existing directory --> then everything is extracted into the
first valid directory = dirA.

So this is what ark does right now (and what reproduces the bug): 
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

With a trailing backslash for the target directory, everything works as
expected:
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/

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

[ark] [Bug 362479] [unrar] Ark extracts files into wrong subdirectory when subdirectories of same name are present

2022-05-31 Thread martin . frueh
https://bugs.kde.org/show_bug.cgi?id=362479

martin.fr...@online.de  changed:

   What|Removed |Added

 CC||mr...@gmx.de

--- Comment #12 from martin.fr...@online.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.

[ark] [Bug 362479] [unrar] Ark extracts files into wrong subdirectory when subdirectories of same name are present

2016-04-30 Thread Zoidberg via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=362479

--- Comment #11 from Zoidberg  ---
Yes, this seems to provide a workaround.
Thanks a lot!

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


[ark] [Bug 362479] [unrar] Ark extracts files into wrong subdirectory when subdirectories of same name are present

2016-04-30 Thread Ragnar Thomsen via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=362479

--- Comment #10 from Ragnar Thomsen  ---
We'll try to get this fixed in the 16.04 series. Meanwhile as a temporary
workaround you can just drag the folders to the destination. This should work.

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


[ark] [Bug 362479] [unrar] Ark extracts files into wrong subdirectory when subdirectories of same name are present

2016-04-30 Thread Elvis Angelaccio via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=362479

Elvis Angelaccio  changed:

   What|Removed |Added

 CC||elvis.angelac...@kdemail.ne
   ||t
   Assignee|elvis.angelac...@kdemail.ne |rthoms...@gmail.com
   |t   |
Summary|Ark extracts files into |[unrar] Ark extracts files
   |wrong subdirectory when |into wrong subdirectory
   |subdirectories of same name |when subdirectories of same
   |are present |name are present
  Component|general |plugins

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