# Virtual access to contents of compressed archive?

**URL:** <https://www.ruby-forum.com/t/virtual-access-to-contents-of-compressed-archive/197605>\
**Category:** Ruby\
**Created:** [October 17, 2010, 4:03am UTC](https://www.ruby-forum.com/t/virtual-access-to-contents-of-compressed-archive/197605 "2010-10-17T04:03:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [October 17, 2010, 4:03am UTC](https://www.ruby-forum.com/t/virtual-access-to-contents-of-compressed-archive/197605/1 "2010-10-17T04:03:13Z")

</div>

Would there happen to be some cool module or extension out there that  
could take a compressed archive (tarball, zip, whatever… I’m  
open-minded) and provide a virtual directory and file i/o interface to  
it? That is, allow access and modification of the contents from within  
the program, while not actually extracting the contents to another file?

---

<div class="post-metadata">

**Author:** ![callyworld](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f17d59/32.png) [@callyworld](https://www.ruby-forum.com/u/callyworld)\
**Post date:** [October 17, 2010, 9:40am UTC](https://www.ruby-forum.com/t/virtual-access-to-contents-of-compressed-archive/197605/2 "2010-10-17T09:40:31Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Am 17.10.2010 04:03, schrieb Terry M.:

> Would there happen to be some cool module or extension out there that  
> could take a compressed archive (tarball, zip, whatever… I’m  
> open-minded) and provide a virtual directory and file i/o interface to  
> it? That is, allow access and modification of the contents from within  
> the program, while not actually extracting the contents to another file?

There’s the rubyzip gem ( [rubyzip | RubyGems.org | your community gem host](http://rubygems.org/gems/rubyzip) ), which  
provides a module Zip::ZipFileSystem which does this I think. As the  
name implies, this is for ZIP files.

Vale,  
Marvin  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.10 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iQEcBAEBAgAGBQJMuqZKAAoJEGrS0YjAWTKVPnkH/jrtqZXM+OaftQ6817fZxzwy  
qdrGpLZKSaPIbEoCsscV2AhCKrmsH5rfMghM5kCGipj/b/kj3axZOi5Q6QnZMCG8  
gcZY1c/kira3Nk/Z/rheBGm0x8hm/0Mim4XJ+If/u9rc3ZNTPs3xY8APSST5LgpE  
ZrwmNfDoPwnbjvx3bXKubaG2yjUvKl8OC47rFItU79qb6kvGvf0ZAQ7dUgcXVUA+  
bsPMZCiNedNUwqQ6tXTTyeV9grDaHyD8htK4NQgxmV4BZ6erpQuvu64quV6z+pTL  
sAlI11+WZkSQBcRqNoV4JaFESztRUB399G4qIE7QZxmHX52QZTH3UO1kb0Vip/Y=  
=YjeP  
-----END PGP SIGNATURE-----
