Bug 192281 - created zip archive always contains whole path
Summary: created zip archive always contains whole path
Status: RESOLVED DUPLICATE of bug 191821
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Unspecified
: NOR normal
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-11 01:31 UTC by Janet
Modified: 2009-05-17 21:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot of zip-archive created with ark (left) and zip (right) (78.43 KB, image/jpeg)
2009-05-14 01:03 UTC, Janet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Janet 2009-05-11 01:31:31 UTC
Version:            (using KDE 4.2.3)
Installed from:    Ubuntu Packages

It seems to be impossible to create a zip archive with files and folders in the top directory of the archive. It doesn't matter if I drag files/folders into the archive or use the add button or the konqueror/dolphin servicemenu, always the whole path seems to be added.
Comment 1 Raphael Kubo da Costa 2009-05-12 05:50:08 UTC
Can you please describe with more details what you were trying to do, or even attach a file that didn't work properly?
Comment 2 Janet 2009-05-14 01:03:28 UTC
Created attachment 33646 [details]
screenshot of zip-archive created with ark (left) and zip (right)

What I do is open ark and create a new zip-archive somewhere, e.g. in ~/testcase/some_folder/new.zip. Then I open dolphin and go to let's say the folder ~/testcase/some_other_folder/to-be-packed
and drag the whole folder "to-be-packed" into ark and new.zip.

What I get is a folder structure inside of new.zip:
..
 ..
  .. 
   testcase
    some_other_folder
     to-be-packed
      the files

Expected behaviour like in ark of KDE3, to get this structure in new.zip:

to-be-packed
 the files

What I drag into the archive always should be top level! Maybe except when I drag it onto an already existing folder in that archive, but that would be another bug report.

When I create a zip-package with zip via commandline the directory structure inside of the package is as expected, but I don't see any way to do this with ark.
Comment 3 Raphael Kubo da Costa 2009-05-14 02:57:34 UTC
I couldn't reproduce it here with 4.2.3 or trunk.

Here's what I did:
* Open Ark and create /tmp/a/test/test.zip
* Open Dolphin and create /tmp/a/testb/test.txt
* In Dolphin, go to /tmp/a
* Drag folder testb to Ark

In both 4.2.3 and trunk, a top-level testb folder was created.
Comment 4 Janet 2009-05-17 20:27:39 UTC
I exactely have done what you described and that works.
So I wonder what is the difference between that action and my actions.

The problem seems to be that the path to the content I try to add into the archive opend in ark - contains a folder which is a symlink! Ark doesn't seem to be able to deal with symlinked folders anymore (it was in KDE3).

Please test the same what you've done before - but this time testb-folder is a symlink to testc.
Comment 5 Janet 2009-05-17 20:31:02 UTC
No, drag the *content* of the symlinked folder into the archive. If you drag the symlinked folder it works. If you add any content somewhere in the symlinked folder you get that weird directory structure inside the archive.
Comment 6 Raphael Kubo da Costa 2009-05-17 21:33:40 UTC
Oh, I see. I can confirm that on 4.2.2 here. It's a duplicate of bug 191821 -- at least if has helped me understand what the reporter had done :)

*** This bug has been marked as a duplicate of bug 191821 ***