Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What file types are supported? #142

Closed
ajmeese7 opened this issue Aug 26, 2022 · 1 comment
Closed

What file types are supported? #142

ajmeese7 opened this issue Aug 26, 2022 · 1 comment

Comments

@ajmeese7
Copy link

Hello there, I'm looking for a list of the supported file types that this library can extract from. Obviously zip files are supported, but how about the following:

  • 7z
  • ar
  • bz2
  • gz
  • lz
  • lzh
  • rar
  • tar
  • zst

I am looking to combine this with the file-type library and those are all the archive types that can be detected by the library, so I just want to ensure that my code covers all of the overlap between your library and their file types.

Thanks in advance!

@thejoshwolfe
Copy link
Owner

yauzl supports the zip file format as specified by PKWARE's APPNOTE.TXT . I only recognize some of the file extensions you listed, but I believe yauzl supports none of them. Certain file formats are zip files by another name, such as jar, apk, and sometimes exe, but yauzl doesn't operate on file extensions at all; it's lower level than that.

Determining if a file is a zipfile can be accomplished by opening the file with yauzl and checking for an immediate error or not. Note that files can be multiple types at once, like exe and zip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants