zip related SCs ignore empty folders

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

zip related SCs ignore empty folders

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: zip related SCs ignore empty folders

Post by admin »

Yes, apparently this is not supported by the ZipFolder technology. I tried hard but only get errors.

Stef123

Re: zip related SCs ignore empty folders

Post by Stef123 »

admin wrote:apparently this is not supported by the ZipFolder technology.
Cannot confirm. Works fine in every other file manager I tried.

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: zip related SCs ignore empty folders

Post 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.)

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: zip related SCs ignore empty folders

Post by bdeshi »

zip_extract() works correctly though.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Stef123

Re: zip related SCs ignore empty folders

Post 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?

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: zip related SCs ignore empty folders

Post by admin »

No way.

Note that Windows Explorer (Win 8.1) also does not support it:
To see the attached files, you need to log into the forum.

Stef123

Re: zip related SCs ignore empty folders

Post 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?

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: zip related SCs ignore empty folders

Post by admin »

Probably using a 3rd party product like pkzip.dll.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: zip related SCs ignore empty folders

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: zip related SCs ignore empty folders

Post by admin »

I work with 7zip and WinRAR all of the time within XY via context menu. There is nothing missing IMO.

Post Reply