Zippy icon indicating copy to clipboard operation
Zippy copied to clipboard

Can't create large zip/tar file

Open moazam1 opened this issue 10 years ago • 3 comments

I am trying to create a large zip/tar file over 4GB. I know zip file has 4GB limitation. So, I tried tar archive. When I create an archive I get following exception: "Unable to launch a new process."

When I dug deep, I found that your library is adding all files (over 6000+) in a single command line.. Here is the command line:

"D:\cmder\vendor\msysgit\bin\tar.EXE" "--no-recursion" "-c" "--bzip2" "--file=d:\myfile.tar.bz2" "--no-recursion" "long-file-name.jpg" "long-file-name.jpg" "long-file-name.jpg"

Is it possible to add files in chunks instead of all together?

moazam1 avatar May 04 '15 15:05 moazam1

The feature does not exist in Zippy, however what you can do is create a new empty archive, and your files one by one by calling addMember on the archive.

fabre-thibaud avatar Dec 15 '15 11:12 fabre-thibaud

I had the same issue while trying to archive 9000 files using ZipAdapter. The length of the command line currently generated by ZipAdapter is of about 500KB and the OS fails launching it.

It can be easily fixed (for the external programs that provide support) by passing the list of files to the external command on stdin and not in the command line. For zip, the command line option is -@ and it allowed me to archive the 9000 files without any problem.

axiac avatar Mar 16 '17 11:03 axiac

Thanks for your feedback @axiac I'll try to play with it and integrate that into the library

fabre-thibaud avatar Mar 16 '17 13:03 fabre-thibaud