Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Getting uncompressed size of zipfile with Rubyzip
Stian Haklev
3/23/2007 9:34:00 AM
This should be really easy and obvious, but I have been looking around,
at Rubyzip documentation, googling etc, and I haven't found a very
obvious answer. All I want is to get the uncompressed size of an entire
zipfile. So far I've only found how to get the uncompressed size of
individual files within the zip file. I am using unzip -Z -t zipfile.zip
with some regexp, which works, but it's not portable or nice.
Thanks a lot, and apologies if this is a really obvious question.
Stian in Jakarta
--
Posted via
http://www.ruby-...
.
1 Answer
Timothy Goddard
3/24/2007 1:09:00 AM
0
On Mar 23, 9:33 pm, Stian Haklev <shak...@gmail.com> wrote:
> This should be really easy and obvious, but I have been looking around,
> at Rubyzip documentation, googling etc, and I haven't found a very
> obvious answer. All I want is to get the uncompressed size of an entire
> zipfile. So far I've only found how to get the uncompressed size of
> individual files within the zip file. I am using unzip -Z -t zipfile.zip
> with some regexp, which works, but it's not portable or nice.
>
> Thanks a lot, and apologies if this is a really obvious question.
> Stian in Jakarta
>
> --
> Posted via
http://www.ruby-...
.
You could get a list of files then add up the sizes.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Getting uncompressed size of zipfile with Rubyzip
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password