help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading out the Uncompressed Size of a compressed File


From: Eli Zaretskii
Subject: Re: Reading out the Uncompressed Size of a compressed File
Date: Fri, 09 Oct 2009 13:34:01 +0200

> From: =?ISO-8859-1?Q?Nordl=F6w?= <per.nordlow@gmail.com>
> Date: Fri, 9 Oct 2009 03:16:50 -0700 (PDT)
> 
> Is there quick a way to determine the uncompressed size of a
> compressed file?
> 
> Does gzip have this in its meta-data somehow?
> 
> I already know that we can figure this out by doing with-temp-buffer
> insert-file-contents() and reading (point-max)-1 if we have auto-
> compression-mode enabled.
> 
> But is there a faster way?

"gzip -l FILE" will show you the uncompressed size of FILE.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]