PRJosh / lz4

Automatically exported from code.google.com/p/lz4
0 stars 0 forks source link

Enhancement request #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I have just started using lz4 and have noticed a couple of things

1. You can only compress 1 file at a time (can't compress nultiple files or 
folders with files in them)
2. You have to specify the name of the file to extract (what if you named the 
lz4 archive with a generic name and forgot the name of the file in the archive 
:P)

It would be nice if you could just specify 'lz4c -d ./inputfile.lz4 .' but 
currently if I do that it attempts to overwrite the current folder .

It would also be good to be able to list the contents of an archive, and of 
course compress multiple files, folders with files etc.

Not sure if this is in the works for future releases as yet or if it's possible 
given the way lz4 works... 

Regards,
Peter

Original issue reported on code.google.com by mightymo...@gmail.com on 7 May 2013 at 3:02

GoogleCodeExporter commented 9 years ago
Hi

Regarding point 1 : 
Yes, indeed. The function you are looking for is an archiver. It's a pretty big 
piece of work by itself. LZ4 is the compression function, like zlib. It can be 
used by an archiver program, such as 
[http://encode.ru/threads/43-FreeArc?p=30169&viewfull=1#post30169 FreeArc] for 
example.

lz4c is meant to be used the same way as gzip for instance. If you want several 
files together into the same archive, you can use tar, and pipe the resulting 
stream into lz4c. It's really the same reasoning as .tar.gz.

Regarding point 2 :
Yes, that's a possible improvement to lz4c.
Let's say that, if the input file is filename.lz4, lz4c could automatically 
output the result as "filename" if not output name is provided.

Original comment by yann.col...@gmail.com on 7 May 2013 at 6:25

GoogleCodeExporter commented 9 years ago
Enhancement request.

Original comment by yann.col...@gmail.com on 7 May 2013 at 6:25

GoogleCodeExporter commented 9 years ago
Point 2 will be integrated into next release.

Original comment by yann.col...@gmail.com on 9 May 2013 at 6:23

GoogleCodeExporter commented 9 years ago
Please find in attached file
a release candidate for LZ4
which integrates point 2 mentioned in this thread
(no longer requires output name for decoding files names *.lz4)

Original comment by yann.col...@gmail.com on 10 May 2013 at 12:38

Attachments:

GoogleCodeExporter commented 9 years ago
Point 2 added into r95

Original comment by yann.col...@gmail.com on 17 May 2013 at 6:46