Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Progress meter for BZ2 file import #2776
There doesn't seem to be a way to tell the current reading location of the original file using the BZip2 library. What I do is to keep the original file handle (which BZip2 uses internally) and use
To be able to pass the file handle to BZip2 (as opposed to the file name) it was necessary to use more low-level functions of the library. This added some extra code that is slightly different when opening for read or write.
Also included some minor de-duplication of file closing code.