in reply to File Compression

As stated above, I don't think you can specify the output chunks beforehand. The brute force methodology would be:
Pseudo code: # foreach $file ( @files ) { # save off a copy of the current compressed file if it exists # attempt to add to current compressed file # if compression fails or new file size > 2GB # rename the saved compression file copy to the working copy # start a new compressed file # add file to compressed file # end # end foreach
Of course this runs into problems if a single file compresses to >2GB

Replies are listed 'Best First'.
Re^2: File Compression
by rovf (Priest) on Jun 12, 2009 at 14:57 UTC
    Of course this runs into problems if a single file compresses to >2GB

    At least you know then that on your platform, the size limit can't be 2 GB ;-)

    -- 
    Ronald Fischer <ynnor@mm.st>
      Touché! I should have said : Of course this runs into problems if a single file would otherwise compress to >2GB =D