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.
Can you please describe with more details what you were trying to do, or even attach a file that didn't work properly?
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:
Expected behaviour like in ark of KDE3, to get this structure in new.zip:
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.
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.
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.
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.
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 ***