in reply to Re: Getting IO::Compress::Zip to include directory entries (on Windows)
in thread Getting IO::Compress::Zip to include directory entries (on Windows)
Thanks! But I guess I wasn't clear enough. I can already include all the files, in whatever directory; what I'm trying to do is include the directory entry itself, like a native zip program would do.
For example, here's the output of Zip 3.0:
C:\Temp\ztest>zip -r test2.zip WEB-INF adding: WEB-INF/ (208 bytes security) (stored 0%) <-- dir, not file adding: WEB-INF/deploy/ (208 bytes security) (stored 0%) <-- ditto adding: WEB-INF/deploy/client/ (208 bytes security) (stored 0%) adding: WEB-INF/deploy/client/rpcPolicy/ (208 bytes security) (store +d 0%) adding: WEB-INF/deploy/client/rpcPolicy/manifest.txt (208 bytes secu +rity) (deflated 4%) <-- first actual file
So it's stored the directory entities and information (including modification times) as well as the files. That's what I'm trying to emulate.
I've done some more digging around, and I'm beginning to think that IO::Compress::Zip might just not do what I want. Also, I didn't think that Archive::Zip was in the core libraries, but it looks like it has been since v 5.12 or so, maybe. (On the other hand, I have to work with some very old systems.)
I might not even need this ability for what I want to do, but the closer I can come to a Real Zip File on output, the better.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting IO::Compress::Zip to include directory entries (on Windows)
by poj (Abbot) on Feb 03, 2016 at 07:48 UTC | |
by pmqs (Friar) on Feb 03, 2016 at 13:10 UTC | |
|
Re^3: Getting IO::Compress::Zip to include directory entries (on Windows)
by dasgar (Priest) on Feb 03, 2016 at 05:41 UTC |