Zip preserving folders

Hi

I have relatively simple problem I somehow cannot solve.
There is a dir structure:

folder subfolder1 file1 subfolder2 file2

I am in 'folder' and want to zip all subfolders (or all selected subfolders), each to a separate archive, so that relative path is preserved. So that I have:
folder\subfolder1.zip:subfolder1\file1
folder\subfolder2.zip:subfolder2\file2

I have problem with the :subfolder* part- I don't know how create it. I've tried playing with createfolder, but to no avail :frowning:

Is there a COPY command line that can accomplish that?

I think this does what you want (remove the HERE if you don't want it created in the source):

Copy ARCHIVE=single,keepfolder HERE

What it does here is putting files into (I am in 'folder", select the subfolders and click the button below)

folder\subfolder1.zip\file1 folder\subfolder2.zip\file2

Moreover, I have noticed, that subdirectories are not shown in files created in this way, when fe subfolder1 contains other folders (while in other zips in the same directory they are visible!) when entered in DO lister. They are visible when opened with WinRAR - ???
Also, the button is inactive when no item is selected - ???

DO 10.0.2.0.4269.x86 on Windows 7, installation migrated from v9

<?xml version="1.0"?> <button backcol="none" display="label" textcol="none"> <label>ZIP all</label> <icon1>#newcommand</icon1> <function type="normal"> <instruction>copy archive=single,keepfolder here</instruction> </function> </button>

Any ideas?

Are the folders you're trying to zip in this way located under a virtual Library path...?

If so, this should be fixed in 10.0.2.1 beta... was one of the various library specific bugs I filed. You can also confirm if this works for you right now by going to the "real" path of the dir where you're trying to do this, and you should then see it work as well.

Side Note: I've now had a go {s} item on my lister context menu, in order to go to the real path to double-check most of my issues for being library specific or not.

Hi

No virtual folders involved.
One more observation- when I close & open lister, I can see subfolders in created zips.
For the time being I've set up a WinRAR button that does the work, but I will check the problem again, maybe after 2.1 is out. It is pretty strange.

If you push F5 after double-clicking each Zip, does it look correct then?

If so, I think I have reproduced what you're seeing and I've made a video/bug report for further investigation.

Yes, F5 shows subfolders. It needs to be done inside each zip separately.