either, the bit I'm interested in is figuring out how to get the master to load classes or modules from an archive as though it were a directory on the pike_*_ path.
I've got a class that can modify and extract data from a ZIP file; it's based on code from someone else with some of my own extra seasoning. Looking at it, I can see a few minor changes that might make it more useful for in-memory work (adding support for adding files and directories from a Filesystem.Base object, etc).
I think it could be made into a subclass of Filesystem.Base without a lot of trouble.
Anyhow, here it is:
http://hg.welliver.org/fins/src/0a2c14930c9c/lib/Tools.pmod/Zip.pike
Feel free to send me any updates that might be useful; if it gets to be more full-featured, I'll commit it to the core.
Bill
On Jun 20, 2012, at 11:22 PM, Martin Bähr wrote:
On Wed, Jun 20, 2012 at 09:35:02PM +0000, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
I've done one of those. I don't know if I still have any code lying around though; that was a long time ago when I still was att Roxen...
zip or tar? i'd be interested in a module that can exctract zip files in memory.
greetings, martin.