Cannot extract large file from TAR file #507

Open
opened 2026-01-29 22:13:03 +00:00 by claunia · 1 comment
Owner

Originally created by @yarong-lifemap on GitHub (Mar 13, 2022).

Example file: https://ftp.ebi.ac.uk/pub/databases/chembl/ChEMBLdb/latest/chembl_30_sqlite.tar.gz
When trying to extract the file called "chembl_30.db" file size = 0 and extraction fails.

using (Stream stream = File.OpenRead(@"chembl_30_sqlite.tar.gz"))
using (var reader = ReaderFactory.Open(stream))
{
    while (reader.MoveToNextEntry())
    {
        if (!reader.Entry.IsDirectory)
        {
            Console.WriteLine(reader.Entry.Key);
            Console.WriteLine(reader.Entry.Size);
        }
    }
}
Originally created by @yarong-lifemap on GitHub (Mar 13, 2022). Example file: https://ftp.ebi.ac.uk/pub/databases/chembl/ChEMBLdb/latest/chembl_30_sqlite.tar.gz When trying to extract the file called "chembl_30.db" file size = 0 and extraction fails. ``` using (Stream stream = File.OpenRead(@"chembl_30_sqlite.tar.gz")) using (var reader = ReaderFactory.Open(stream)) { while (reader.MoveToNextEntry()) { if (!reader.Entry.IsDirectory) { Console.WriteLine(reader.Entry.Key); Console.WriteLine(reader.Entry.Size); } } } ```
claunia added the bugup for grabs labels 2026-01-29 22:13:03 +00:00
Author
Owner

@Erior commented on GitHub (Jul 2, 2022):

Hint:
For this to work we need to add support/parsing of the pax extension, the size is listed there.

@Erior commented on GitHub (Jul 2, 2022): Hint: For this to work we need to add support/parsing of the pax extension, the size is listed there.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#507