<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>208384</bug_id>
          
          <creation_ts>2009-09-24 14:02:19 +0000</creation_ts>
          <short_desc>Extracting selected files will always create the whole directory structure</short_desc>
          <delta_ts>2016-02-19 11:49:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>ark</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diederik van der Boor">vdboor</reporter>
          <assigned_to name="Ragnar Thomsen">rthomsen6</assigned_to>
          <cc>alessandro.ufms</cc>
    
    <cc>arthur</cc>
    
    <cc>aspotashev</cc>
    
    <cc>b.brachaczek</cc>
    
    <cc>Erwin.Mascher</cc>
    
    <cc>finex</cc>
    
    <cc>francescortiz</cc>
    
    <cc>get.sonic</cc>
    
    <cc>info</cc>
    
    <cc>knizek</cc>
    
    <cc>l.arvanitis</cc>
    
    <cc>mmodem00</cc>
    
    <cc>mte90net</cc>
    
    <cc>null</cc>
    
    <cc>oracle2b</cc>
    
    <cc>rakuco</cc>
    
    <cc>rion4ik</cc>
    
    <cc>rthomsen6</cc>
    
    <cc>sammiestoel</cc>
    
    <cc>sean</cc>
    
    <cc>simonandric5</cc>
    
    <cc>sjakub</cc>
    
    <cc>tesfabpel</cc>
    
    <cc>victor.varvariuc</cc>
    
    <cc>yorsh</cc>
          
          <cf_commitlink>http://commits.kde.org/ark/7c025dd5765c41957787493786248157f29b4e13</cf_commitlink>
          <cf_versionfixedin>15.08.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>133</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>835036</commentid>
    <comment_count>0</comment_count>
    <who name="Diederik van der Boor">vdboor</who>
    <bug_when>2009-09-24 14:02:19 +0000</bug_when>
    <thetext>Version:           2.13 (using 4.3.1 (KDE 4.3.1) &quot;release 161&quot;, KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31-rc5-8-pae

I&apos;ve tried to extract a file by dragging it to dolphin. To my surprise the folder structure (of the archive) was re-created. Instead, I only expect the single file to be extracted in the target folder.

Example use case:
- download jquery.mousewheel.3.0.2.zip
- open it in ark
- drag the relevant JS file to your project.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>836099</commentid>
    <comment_count>1</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2009-09-26 21:36:37 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 204323 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>927465</commentid>
    <comment_count>2</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2010-03-03 04:24:07 +0000</bug_when>
    <thetext>Reopening, this actually isn&apos;t related to kioslaves.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>959090</commentid>
    <comment_count>3</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2010-05-09 03:25:05 +0000</bug_when>
    <thetext>SVN commit 1124377 by rkcosta:

Do not preserve paths when extracting via drag&apos;n&apos;drop.

CCBUG: 208384

 M  +1 -2      part.cpp  
 M  +1 -1      part.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1124377</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>959097</commentid>
    <comment_count>4</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2010-05-09 03:33:05 +0000</bug_when>
    <thetext>SVN commit 1124379 by rkcosta:

Backport r1124377.

Do not preserve paths when extracting via drag&apos;n&apos;drop.

BUG: 208384


 M  +1 -2      part.cpp  
 M  +1 -1      part.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1124379</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964630</commentid>
    <comment_count>5</comment_count>
    <who name="Erwin Mascher">Erwin.Mascher</who>
    <bug_when>2010-05-20 12:03:15 +0000</bug_when>
    <thetext>please reopen.

this bug is only partially fixed. dragging files now works as expected, but when dragging a folder from ark to dolphin, it should recreate the partial folder structure beginning with the dragged folder.

so if my archive contains:
a/b/c.txt

and i drag the folder b into my home directory, i should have:
/home/b/
/home/b/c.txt

but currently i get:
/home/c.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>966013</commentid>
    <comment_count>6</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2010-05-23 06:16:56 +0000</bug_when>
    <thetext>This seems to be true only to zip files, which are extracted via the &apos;unzip&apos; utility. It has no way of specifying which directory to start extracting from. A possible workaround in this case would be extracting with the full path to a temporary directory and moving the desired parts to the final directory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>966017</commentid>
    <comment_count>7</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2010-05-23 07:35:42 +0000</bug_when>
    <thetext>SVN commit 1129641 by rkcosta:

Revert 1124377.

All plugins but clizip support RootNode, and PreservePaths is needed in
order for dragging and dropping a directory to create the proper
structure.

CCBUG: 208384

 M  +1 -0      part.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1129641</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>966018</commentid>
    <comment_count>8</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2010-05-23 07:37:12 +0000</bug_when>
    <thetext>SVN commit 1129642 by rkcosta:

Backport 1129641.

Revert 1124379.

All plugins but clizip support RootNode, and PreservePaths is needed in
order for dragging and dropping a directory to create the proper
structure.

CCBUG: 208384


 M  +1 -0      part.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1129642</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1002460</commentid>
    <comment_count>9</comment_count>
    <who name="Bartosz Brachaczek">b.brachaczek</who>
    <bug_when>2010-08-12 22:09:49 +0000</bug_when>
    <thetext>The funny thing is that it works properly when dragging to Folder View Plasma widget. Actually it looks like it triggers another action since it opens a context menu after dropping, just like with regular files from the filesystem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1055183</commentid>
    <comment_count>10</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2010-12-08 02:19:11 +0000</bug_when>
    <thetext>Changing the default assignee in the currently open Ark bug reports to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114215</commentid>
    <comment_count>11</comment_count>
    <who name="Jakub Schmidtke">sjakub</who>
    <bug_when>2011-05-02 23:27:06 +0000</bug_when>
    <thetext>I have the same behaviour, when I have the following directory structure inside zip archive:
dir
dir/dir.txt
dir/a
dir/a/a.txt

Dragging and dropping the &apos;a&apos; element into /tmp/test/ results in:
test/dir
test/dir/a
test/dir/a/a.txt

I would expect it to be:
test/a
test/a/a.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114217</commentid>
    <comment_count>12</comment_count>
    <who name="Jakub Schmidtke">sjakub</who>
    <bug_when>2011-05-02 23:28:42 +0000</bug_when>
    <thetext>On the other hand, when that directory structure is inside RAR archive I end up having:
test/dir
test/dir/a
test/dir/a/a
test/dir/a/a/a.txt
(which is also related to bug 272281 - but maybe this helps too...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114218</commentid>
    <comment_count>13</comment_count>
      <attachid>59557</attachid>
    <who name="Jakub Schmidtke">sjakub</who>
    <bug_when>2011-05-02 23:29:22 +0000</bug_when>
    <thetext>Created attachment 59557
An archive that demonstrates the problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114219</commentid>
    <comment_count>14</comment_count>
      <attachid>59558</attachid>
    <who name="Jakub Schmidtke">sjakub</who>
    <bug_when>2011-05-02 23:29:34 +0000</bug_when>
    <thetext>Created attachment 59558
An archive that demonstrates the problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1122009</commentid>
    <comment_count>15</comment_count>
    <who name="Alessandro Nakamuta">alessandro.ufms</who>
    <bug_when>2011-05-22 20:11:24 +0000</bug_when>
    <thetext>I have this problem too. And here, drag n drop with multiple files do not working here. It extract only a single file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1169971</commentid>
    <comment_count>16</comment_count>
    <who name="christian kießling">info</who>
    <bug_when>2011-10-04 13:32:24 +0000</bug_when>
    <thetext>I have the same problem with multible archive formats: 

- it is possible to drag&amp;drop ONE file from the archive to dolphin ( in my case) 
- if i try to d&amp;d multiple files (2 or mor or just a coice of files) id just copies one

a fix of this issue wold be great help to me!

thanks all that are working so hard on the fix!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1170021</commentid>
    <comment_count>17</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2011-10-04 16:08:02 +0000</bug_when>
    <thetext>(In reply to comment #16)
&gt; - if i try to d&amp;d multiple files (2 or mor or just a coice of files) id just
&gt; copies one

This is actually a different issue, please see bug 187152.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1194924</commentid>
    <comment_count>18</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2011-12-05 03:37:20 +0000</bug_when>
    <thetext>Changing the title of the bug from &quot;Dragging a file to dolphin to extract, will create a folder structure&quot; to &quot;Extracting selected files will always create the whole directory structure&quot;. This better reflects the reality and shows it is a more general problem not restricted to dragging and dropping.

While working on bug 187152 today, I came to think about this report again. Let us consider the example described in comment #11 again:

&gt; dir
&gt; dir/dir.txt
&gt; dir/a
&gt; dir/a/a.txt

If that directory structure was present in the filesystem and one used a file manager such as Dolphin to drag or copy &quot;/tmp/dir/a&quot; to &quot;/tmp/other-dir&quot;, the resulting structure would be &quot;/tmp/other-dir/a&quot;, not &quot;/tmp/other-dir/dir/a/&quot; or &quot;/tmp/other-dir/tmp/dir/a&quot;.

From the comments in this report, it looks like people expect Ark to act the same way; that is, selecting &quot;a&quot; in the tree structure and extracting (or dragging it) to &quot;/tmp/other-dir&quot; would result in &quot;/tmp/other-dir/a&quot;, not &quot;/tmp/other-dir/dir/a/&quot;. The latter is what both dragging&apos;n&apos;dropping _and_ regular extraction create.

Replicating the expected behavior with compressed archives is made more difficult due to the archive management programs themselves (unzip, unrar, lha and 7z), as they are usually not capable of easily handling this.

As I mentioned in comment #6, a possible workaround involves extracting the desired files into a temporary location and later moving them (I&apos;d like to avoid this because the temporary directory might be in another partition with little disk space, for example), or separating the selected files by common parent and extracting them separately. Other ideas welcome :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1194932</commentid>
    <comment_count>19</comment_count>
    <who name="Jakub Schmidtke">sjakub</who>
    <bug_when>2011-12-05 05:40:13 +0000</bug_when>
    <thetext>(In reply to comment #18)
&gt; As I mentioned in comment #6, a possible workaround involves extracting the
&gt; desired files into a temporary location and later moving them (I&apos;d like to
&gt; avoid this because the temporary directory might be in another partition with
&gt; little disk space, for example), or separating the selected files by common
&gt; parent and extracting them separately. Other ideas welcome :)

How about creating the directory structure manually, not through the archiving tool,
and extracting individual files to appropriate directories,
while making the archiving tool skip the directories altogether?
I haven&apos;t check all the tools, but at least the main ones allow to do that.

All of the following extract &apos;file.txt&apos; into the current directory:

unzip -j arch.zip dir/a/b/c/file.txt
unrar e arch.rar dir/a/b/c/file.txt
7z e arch.7z  dir/a/b/c/file.txt

For tar, I couldn&apos;t find an option that would prevent it from recreating the whole directory structure,
but -O can be used and the output redirected to a specific file (at the cost of loosing
all the attributes):

tar -O -xzf arch.tar.gz  dir/a/b/c/file.txt &gt; file.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1195056</commentid>
    <comment_count>20</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2011-12-05 12:44:39 +0000</bug_when>
    <thetext>(In reply to comment #19)
&gt; How about creating the directory structure manually, not through the archiving
&gt; tool,
&gt; and extracting individual files to appropriate directories,
&gt; while making the archiving tool skip the directories altogether?

This is a variation on the second idea I mentioned. The potential downside is that we may end up creating a lot of jobs in case the selected files all live in separate directories with no common ancestors. Unfortunately, this may be the only way to go...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1195072</commentid>
    <comment_count>21</comment_count>
    <who name="Leonidas Arvanitis">l.arvanitis</who>
    <bug_when>2011-12-05 13:47:21 +0000</bug_when>
    <thetext>How about extract in a tmp dir in the target location which then gets deleted?
ie.
extracting dir/a -&gt; /tmp/other-dir would:
 extract   dir/a -&gt; /tmp/other-dir/.ark_temp/dir/a
 mv /tmp/other-dir/.ark_temp/dir/a -&gt;
                    /tmp/other-dir/a
 rm -rf /tmp/other-dir/.ark_temp

That way it works independently of what each tool supports while the different filesystem problem is also solved.

Just make sure &apos;.ark_temp&apos; gets removed on a failed extraction and in case it exists (for whatever reason), work on &apos;.ark_temp(2)&apos; etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1195569</commentid>
    <comment_count>22</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2011-12-06 15:32:34 +0000</bug_when>
    <thetext>(In reply to comment #21)
&gt; How about extract in a tmp dir in the target location which then gets deleted?
&gt; ie.
&gt; extracting dir/a -&gt; /tmp/other-dir would:
&gt;  extract   dir/a -&gt; /tmp/other-dir/.ark_temp/dir/a
&gt;  mv /tmp/other-dir/.ark_temp/dir/a -&gt;
&gt;                     /tmp/other-dir/a
&gt;  rm -rf /tmp/other-dir/.ark_temp
&gt; 
&gt; That way it works independently of what each tool supports while the different
&gt; filesystem problem is also solved.
&gt; 
&gt; Just make sure &apos;.ark_temp&apos; gets removed on a failed extraction and in case it
&gt; exists (for whatever reason), work on &apos;.ark_temp(2)&apos; etc.

Hmm, that might be a good idea. The cumbersome side is handling filenames which already exist (Ark would need to do that after the extraction has finished) and moving things around, but I think this is the best proposal so far :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1205970</commentid>
    <comment_count>23</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2011-12-28 18:14:27 +0000</bug_when>
    <thetext>*** Bug 290034 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1205971</commentid>
    <comment_count>24</comment_count>
    <who name="Zé">mmodem00</who>
    <bug_when>2011-12-28 18:19:34 +0000</bug_when>
    <thetext>This bug is 2 years old!
And this is a very important feature broken...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206217</commentid>
    <comment_count>25</comment_count>
    <who name="Zé">mmodem00</who>
    <bug_when>2011-12-29 14:50:41 +0000</bug_when>
    <thetext>I have build ark from master (SHA 8a3e5d96d295b78734845bd3358b55c0534da5a1) that icludes your latest changes and this bug continues being valid...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206226</commentid>
    <comment_count>26</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2011-12-29 15:27:13 +0000</bug_when>
    <thetext>(In reply to comment #25)
&gt; I have build ark from master (SHA 8a3e5d96d295b78734845bd3358b55c0534da5a1)
&gt; that icludes your latest changes and this bug continues being valid...

That&apos;s why the bug is still open :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1239718</commentid>
    <comment_count>27</comment_count>
    <who name="Daniele Scasciafratte">mte90net</who>
    <bug_when>2012-03-25 13:34:05 +0000</bug_when>
    <thetext>It&apos;s a annoying problem!
please fix it!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1262888</commentid>
    <comment_count>28</comment_count>
    <who name="oracle2b">oracle2b</who>
    <bug_when>2012-06-06 18:36:21 +0000</bug_when>
    <thetext>Is a fix in the works??</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1298549</commentid>
    <comment_count>29</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2012-09-19 09:48:12 +0000</bug_when>
    <thetext>*** Bug 307017 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1306514</commentid>
    <comment_count>30</comment_count>
    <who name="">tesfabpel</who>
    <bug_when>2012-10-16 15:28:10 +0000</bug_when>
    <thetext>Please fix this... is a very annoying bug, especially when other archive managers like GNOME&apos;s file-roller work very well... :P</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1323650</commentid>
    <comment_count>31</comment_count>
    <who name="Milan Knížek">knizek</who>
    <bug_when>2012-12-14 09:01:09 +0000</bug_when>
    <thetext>Is there any known workaround for this bug?

AFAIK it is not possible to use File-Roller or Xarchiver since drag&amp;drop XDS [1] property is not supported by KDE file managers (Dolphin). I tried few other archivers, but to no avail either.

One method to be used with some supported archive types would be to open the archive within Dolphin itself, but that seems pretty buggy, too. (Works for some ZIP files, not for others. Similar like described here [2] and here [3].)

Krusader works fine, but it is too much complicated for a simple mouse driven use style...

[1] http://freedesktop.org/wiki/Specifications/XDS?action=show&amp;redirect=Standards%2FXDS
[2] https://bugs.kde.org/show_bug.cgi?id=216672
[3] http://forum.kde.org/viewtopic.php?f=224&amp;t=107415</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340320</commentid>
    <comment_count>32</comment_count>
    <who name="">tesfabpel</who>
    <bug_when>2013-02-11 10:45:46 +0000</bug_when>
    <thetext>I&apos;ve tried the latest Kubuntu 13.04 daily build and it seems to be fixed.
Can anyone else confirm as well?
:-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340477</commentid>
    <comment_count>33</comment_count>
    <who name="Milan Knížek">knizek</who>
    <bug_when>2013-02-11 17:19:29 +0000</bug_when>
    <thetext>(In reply to comment #32)
&gt; I&apos;ve tried the latest Kubuntu 13.04 daily build and it seems to be fixed.

Arch linux, KDE 4.10.00, Ark 2.19. 

With ZIP or 7ZIP files, it is still buggy (full path is extracted via drag&amp;drop).
With TAR.GZ files, things work as expected (though it should ask whether the files/folders should be extracted with full path or not).

To me, it seems still buggy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369259</commentid>
    <comment_count>34</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2013-05-16 15:08:50 +0000</bug_when>
    <thetext>*** Bug 319911 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369705</commentid>
    <comment_count>35</comment_count>
      <attachid>79952</attachid>
    <who name="Francesc Ortiz">francescortiz</who>
    <bug_when>2013-05-18 17:36:01 +0000</bug_when>
    <thetext>Created attachment 79952
Proposed patch for CLI apps like unzip</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369706</commentid>
    <comment_count>36</comment_count>
    <who name="Francesc Ortiz">francescortiz</who>
    <bug_when>2013-05-18 17:41:55 +0000</bug_when>
    <thetext>The patch I just submited makes cli apps that do not support &quot;rootNode&quot; extraction (the problem described here) makes this cli apps work on a tmp directory called &quot;._ark_extract&quot;.

I just realized that it is not safe if you extract many zips simultaneously to the same destination directory.

I will post another patch shortly that adds a random uuid to the directory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369710</commentid>
    <comment_count>37</comment_count>
      <attachid>79954</attachid>
    <who name="Francesc Ortiz">francescortiz</who>
    <bug_when>2013-05-18 17:50:26 +0000</bug_when>
    <thetext>Created attachment 79954
Extract to temporary subdirectory safe for simultaneous extracts

Previous patch with the addition of random uuid to the temporary directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369726</commentid>
    <comment_count>38</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2013-05-18 18:49:11 +0000</bug_when>
    <thetext>Thank you for the patch. Please note, though, that patches should be submitted via ReviewBoard instead of Bugzilla. See http://techbase.kde.org/Contribute/Send_Patches#Reviewboard for more information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369739</commentid>
    <comment_count>39</comment_count>
    <who name="Francesc Ortiz">francescortiz</who>
    <bug_when>2013-05-18 21:29:53 +0000</bug_when>
    <thetext>Thank you. Patch submited:

https://git.reviewboard.kde.org/r/110516/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1375425</commentid>
    <comment_count>40</comment_count>
    <who name="Francesc Ortiz">francescortiz</who>
    <bug_when>2013-06-10 08:23:56 +0000</bug_when>
    <thetext>The patch has not been accepted because it overwrites without prompt. This is caused because I use QFile-&gt;rename instead of the corresponding KIO call. I&apos;ve been trying to create a move job for this patch but I don&apos;t seem to be able to make it work. The notifier widget always shows that I create a blank job and no file gets moved at all.

I&apos;ve been trying to find documentation and examples of KIO::move() with no luck. I found the API documentation, but it seems to be focused on developers who already understand KIO Jobs.

I would really appreciate if someone could give me a link with KIO Jobs or KIO::move documentation and/or examples.

This is what I tried:
http://pastebin.com/2ce3aRes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1442532</commentid>
    <comment_count>41</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2014-04-21 10:25:36 +0000</bug_when>
    <thetext>*** Bug 333670 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1504286</commentid>
    <comment_count>42</comment_count>
    <who name="Sergey">rion4ik</who>
    <bug_when>2015-03-09 10:23:18 +0000</bug_when>
    <thetext>the bug is still here with ark-4.14.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1545326</commentid>
    <comment_count>43</comment_count>
    <who name="Ragnar Thomsen">rthomsen6</who>
    <bug_when>2015-09-21 19:27:21 +0000</bug_when>
    <thetext>Git commit 7c025dd5765c41957787493786248157f29b4e13 by Ragnar Thomsen.
Committed on 21/09/2015 at 19:25.
Pushed by rthomsen into branch &apos;Applications/15.08&apos;.

Fix drag&apos;n&apos;drop extraction with CLI-plugins

This fixes drag&apos;n&apos;drop extraction of selected entries from Ark to e.g.
Dolphin for archives handled by CLI-plugins. Previously, the entries
would be extracted with full path, which is not what the user expects
and not how the libarchive-plugin handles tar-based archives. This was
due to CLI-plugins not supporting individual root nodes (i.e. removing
a part of the path from entry to be extracted). This is now circumvented
by extracting to a QTemporaryDir, removing the root node from the path,
and finally moving the files to their final destination. The moving to
final destination is done in a new member function in CliInterface
(moveToFinalDest). This function checks if the destination file exists
and prompts the user for action if that is the case.

The finished signal() is now emitted from copyFiles()/addFiles()/
deleteFiles()/list(), instead of from processFinished().
FIXED-IN: 15.08.2
REVIEW: 125293

M  +108  -9    kerfuffle/cliinterface.cpp
M  +3    -0    kerfuffle/cliinterface.h

http://commits.kde.org/ark/7c025dd5765c41957787493786248157f29b4e13</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1575176</commentid>
    <comment_count>44</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2016-02-06 09:49:05 +0000</bug_when>
    <thetext>*** Bug 359049 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1577461</commentid>
    <comment_count>45</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2016-02-19 11:49:27 +0000</bug_when>
    <thetext>*** Bug 359565 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>59557</attachid>
            <date>2011-05-02 23:29:22 +0000</date>
            <delta_ts>2011-05-02 23:29:22 +0000</delta_ts>
            <desc>An archive that demonstrates the problem</desc>
            <filename>dir.zip</filename>
            <type>application/octet-stream</type>
            <size>604</size>
            <attacher name="Jakub Schmidtke">sjakub</attacher>
            
              <data encoding="base64">UEsDBAoAAAAAALq7oj4AAAAAAAAAAAAAAAAEABwAZGlyL1VUCQADsHa/TSJzv011eAsAAQToAwAA
BGQAAABQSwMECgACAAAAErqiPo292i8EAAAABAAAAAsAHABkaXIvZGlyLnR4dFVUCQADlHO/TZRz
v011eAsAAQToAwAABGQAAABkaXIKUEsDBAoAAAAAAKK7oj4AAAAAAAAAAAAAAAAGABwAZGlyL2Ev
VVQJAAOAdr9NsXK/TXV4CwABBOgDAAAEZAAAAFBLAwQKAAIAAAChuaI+B6Hq3QIAAAACAAAACwAc
AGRpci9hL2EudHh0VVQJAAO9cr9NvXK/TXV4CwABBOgDAAAEZAAAAGEKUEsBAh4DCgAAAAAAurui
PgAAAAAAAAAAAAAAAAQAGAAAAAAAAAAQAO1BAAAAAGRpci9VVAUAA7B2v011eAsAAQToAwAABGQA
AABQSwECHgMKAAIAAAASuqI+jb3aLwQAAAAEAAAACwAYAAAAAAABAAAApIE+AAAAZGlyL2Rpci50
eHRVVAUAA5Rzv011eAsAAQToAwAABGQAAABQSwECHgMKAAAAAACiu6I+AAAAAAAAAAAAAAAABgAY
AAAAAAAAABAA7UGHAAAAZGlyL2EvVVQFAAOAdr9NdXgLAAEE6AMAAARkAAAAUEsBAh4DCgACAAAA
obmiPgeh6t0CAAAAAgAAAAsAGAAAAAAAAQAAAKSBxwAAAGRpci9hL2EudHh0VVQFAAO9cr9NdXgL
AAEE6AMAAARkAAAAUEsFBgAAAAAEAAQAOAEAAA4BAAAAAA==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>59558</attachid>
            <date>2011-05-02 23:29:34 +0000</date>
            <delta_ts>2011-05-02 23:29:34 +0000</delta_ts>
            <desc>An archive that demonstrates the problem</desc>
            <filename>dir.rar</filename>
            <type>application/octet-stream</type>
            <size>212</size>
            <attacher name="Jakub Schmidtke">sjakub</attacher>
            
              <data encoding="base64">UmFyIRoHAM+QcwAADQAAAAAAAAAkTnQggCsADgAAAAQAAAADjb3aLxK6oj4dMwsApIEAAGRpclxk
aXIudHh0AAi/CK7ziJU/8H/2G3RqknQgkC0ACwAAAAIAAAADB6Hq3aC5oj4dMwsApIEAAGRpclxh
XGEudHh0AMAAz/SG/S8/hPf7LefMdOCAJQAAAAAAAAAAAAMAAAAAoruiPhQwBQDtQQAAZGlyXGEs
P3TggCMAAAAAAAAAAAADAAAAALq7oj4UMAMA7UEAAGRpcsQ9ewBABwA=
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>79952</attachid>
            <date>2013-05-18 17:36:01 +0000</date>
            <delta_ts>2013-05-18 17:50:26 +0000</delta_ts>
            <desc>Proposed patch for CLI apps like unzip</desc>
            <filename>ark_cli_no_dirs.patch</filename>
            <type>text/plain</type>
            <size>2910</size>
            <attacher name="Francesc Ortiz">francescortiz</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL2tlcmZ1ZmZsZS9jbGlpbnRlcmZhY2UuY3BwIGIva2VyZnVmZmxlL2NsaWlu
dGVyZmFjZS5jcHAKaW5kZXggM2NiZTMxYi4uMDg3ZmIwMyAxMDA2NDQKLS0tIGEva2VyZnVmZmxl
L2NsaWludGVyZmFjZS5jcHAKKysrIGIva2VyZnVmZmxlL2NsaWludGVyZmFjZS5jcHAKQEAgLTEw
Myw2ICsxMDMsOCBAQCBib29sIENsaUludGVyZmFjZTo6Y29weUZpbGVzKGNvbnN0IFFMaXN0PFFW
YXJpYW50PiAmIGZpbGVzLCBjb25zdCBRU3RyaW5nICYgZGVzdAogCiAgICAgLy9zdGFydCBwcmVw
YXJpbmcgdGhlIGFyZ3VtZW50IGxpc3QKICAgICBRU3RyaW5nTGlzdCBhcmdzID0gbV9wYXJhbS52
YWx1ZShFeHRyYWN0QXJncykudG9TdHJpbmdMaXN0KCk7CisgICAgCisgICAgYm9vbCByb290Tm9k
ZVN3aXRjaCA9IGZhbHNlOwogCiAgICAgLy9ub3cgcmVwbGFjZSB0aGUgdmFyaW91cyBlbGVtZW50
cyBpbiB0aGUgbGlzdAogICAgIGZvciAoaW50I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gdHJ1ZTsK
IH0K
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>79954</attachid>
            <date>2013-05-18 17:50:26 +0000</date>
            <delta_ts>2013-05-18 21:28:50 +0000</delta_ts>
            <desc>Extract to temporary subdirectory safe for simultaneous extracts</desc>
            <filename>ark_cli_no_dirs.patch</filename>
            <type>text/plain</type>
            <size>5945</size>
            <attacher name="Francesc Ortiz">francescortiz</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL2tlcmZ1ZmZsZS9jbGlpbnRlcmZhY2UuY3BwIGIva2VyZnVmZmxlL2NsaWlu
dGVyZmFjZS5jcHAKaW5kZXggM2NiZTMxYi4uMDg3ZmIwMyAxMDA2NDQKLS0tIGEva2VyZnVmZmxl
L2NsaWludGVyZmFjZS5jcHAKKysrIGIva2VyZnVmZmxlL2NsaWludGVyZmFjZS5jcHAKQEAgLTEw
Myw2ICsxMDMsOCBAQCBib29sIENsaUludGVyZmFjZTo6Y29weUZpbGVzKGNvbnN0IFFMaXN0PFFW
YXJpYW50PiAmIGZpbGVzLCBjb25zdCBRU3RyaW5nICYgZGVzdAogCiAgICAgLy9zdGFydCBwcmVw
YXJpbmcgdGhlIGFyZ3VtZW50IGxpc3QKICAgICBRU3RyaW5nTGlzdCBhcmdzID0gbV9wYXJhbS52
YWx1ZShFeHRyYWN0QXJncykudG9TdHJpbmdMaXN0KCk7CisgICAgCisgICAgYm9vbCByb290Tm9k
ZVN3aXRjaCA9IGZhbHNlOwogCiAgICAgLy9ub3cgcmVwbGFjZSB0aGUgdmFyaW91cyBlbGVtZW50
cyBpbiB0aGUgbGlzdAogICAgIGZvciAoaW50IGkgPSAwOyBpIDwgYXJncy5zaXplKCk7ICsraSkg
ewpAQCAtMTgxLDYgKzE4Myw3IEBAIGJvb2wgQ2xpSW50ZXJmYWNlOjpjb3B5RmlsZXMoY29uc3Qg
UUxpc3Q8UVZhcmlhbnQ+ICYgZmlsZXMsIGNvb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aWxlcyBvdXRzaWRlIG9m
IHJvb3ROb2RlCisJUURpciByb290KHJvb3ROb2RlKTsKKwlpZiAoIXJvb3ROb2RlLmlzRW1wdHko
KSkgeworCSAgICBRU3RyaW5nTGlzdCBjb250ZW50cyA9IHJvb3QuZW50cnlMaXN0KFFEaXI6Ok5v
RG90QW5kRG90RG90IHwgUURpcjo6U3lzdGVtIHwgUURpcjo6SGlkZGVuICB8IFFEaXI6OkFsbERp
cnMgfCBRRGlyOjpGaWxlcyk7CisJICAgIGZvcmVhY2ggKFFTdHJpbmcgZmlsZSwgY29udGVudHMp
IHsKKwkgICAgICAgIFFGaWxlKHJvb3ROb2RlICsgUVN0cmluZzo6ZnJvbUxhdGluMSgiLyIsIDEp
ICsgZmlsZSkucmVuYW1lKFFTdHJpbmc6OmZyb21Bc2NpaSgiLi4vIiwgMykgKyBmaWxlKTsKKwkg
ICAgfQorCX0KKwkKKwkvLyBSZW1vdmUgcm9vdE5vZGUKKwlRRGlyIHdvcmtEaXIod29ya2luZ0Rp
cmVjdG9yeSk7CisJd29ya0Rpci5ybXBhdGgocm9vdE5vZGUpOworCVFEaXIgZGVzdERpcihkZXN0
aW5hdGlvbkRpcmVjdG9yeSk7CisJZGVzdERpci5ybWRpcih0bXBEaXIpOworICAgIH0KIAogICAg
IHJldHVybiB0cnVlOwogfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>