Page 1 of 1

zip related SCs ignore empty folders

Posted: 23 May 2014 10:29
by bdeshi
If zip archive has empty folders, zip_list() doesn't list it. And zip_extract() doesn't extract it.
And zip_add() just ignores empty folders in its input filelist.

Re: zip related SCs ignore empty folders

Posted: 02 Jun 2014 09:33
by admin
Yes, apparently this is not supported by the ZipFolder technology. I tried hard but only get errors.

Re: zip related SCs ignore empty folders

Posted: 02 Jun 2014 09:45
by Stef123
admin wrote:apparently this is not supported by the ZipFolder technology.
Cannot confirm. Works fine in every other file manager I tried.

Re: zip related SCs ignore empty folders

Posted: 02 Jun 2014 09:50
by admin
Yep, that's what I thought too, but at some point I had to give up. I also found reports in the web that it is not supported.

(Note that "ZipFolder technology" is not the same as working with Zip files. It is just the part of the shell that attempts to make zip files look like folders.)

Re: zip related SCs ignore empty folders

Posted: 02 Jun 2014 10:10
by bdeshi
zip_extract() works correctly though.

Re: zip related SCs ignore empty folders

Posted: 02 Jun 2014 10:11
by Stef123
admin wrote:Note that "ZipFolder technology" is not the same as working with Zip files.
Thanks for filling me in. Sounds more complicated than what my naive end user's brain wants to deal with.

It's the second part I am concerned with, the working with Zip files. Until SammaySarkar brought it up, I had failed to notice that my XY-zipped parcels leave all empty folders at home. How do I take them along for the ride in the ZIP? How do I make XY behave like the rest of the gang?

Re: zip related SCs ignore empty folders

Posted: 02 Jun 2014 10:28
by admin
No way.

Note that Windows Explorer (Win 8.1) also does not support it:

Re: zip related SCs ignore empty folders

Posted: 02 Jun 2014 11:08
by Stef123
Now that's a very bad example, really. The main reason we're not using WinExplorer is the very fact that is lacking so many things. By that measure you could shrug off pretty much every request.

I won't mention competitors, but even free managers are able to handle it. How the heck do they do it?

Re: zip related SCs ignore empty folders

Posted: 02 Jun 2014 11:15
by admin
Probably using a 3rd party product like pkzip.dll.

Re: zip related SCs ignore empty folders

Posted: 02 Jun 2014 12:51
by bdeshi
Anyways, Don, you can tackle this at your leisure.
But since all of us often work with archives, and almost all of us have other tools to work with archives that integrate nicely with xyplorer, maybe you can add an option to have custom archive handlers. Much like custom copy handlers, custom CLI's etc.
With define-able commands to add, list, extract archives. The listing is usually a cmdline output, so XY should intercept and display that in a dialog.

Re: zip related SCs ignore empty folders

Posted: 02 Jun 2014 13:03
by admin
I work with 7zip and WinRAR all of the time within XY via context menu. There is nothing missing IMO.