AW: AW: [PEAR-DEV] Re: [Proposal] Stream_Var
| From: | Stephan Schmidt | Date: | Fri, 15 Aug 2003 22:31:45 +0000 |
| Subject: | AW: AW: [PEAR-DEV] Re: [Proposal] Stream_Var | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19850@lists.php.net to get a copy of this message | ||
Hi,
> Stephan: Do you think an interface for integrating e.g. Archive_Tar
> or similar would be possible so you can transparently read from an
> archive? But this is just a side-thought :-)
I'm not familiar with Archive_Tar, but basically you can do whatever you
like in your stream wrapper. On opendir() you could untar the archive in
a temp folder (or memory, if that's possible with Archive_Tar) and then
access the files from there, by mapping the path. On closedir you put
all files back in the archive.
This would surely be slower than using Archive_Tar, but it would be a
nice abstraction, like ACDSee does it on Windows, this image viewer
treats ZIP Archives like they were directories...
Stephan