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

Xtractr should use file content to determine archive type #55

Open
lateef-k opened this issue Apr 7, 2024 · 0 comments
Open

Xtractr should use file content to determine archive type #55

lateef-k opened this issue Apr 7, 2024 · 0 comments

Comments

@lateef-k
Copy link

lateef-k commented Apr 7, 2024

Hello,

I had an issue with unpackerr due to one of the *Arrs where an archive was mislabelled as RAR, but it was in fact a 7z archive. This is easily identified using the file command: file actually_7z.rar. Archives generally have magic numbers to identify their type more reliably, I think this is a less brittle method.

if strings.HasSuffix(sName, ext.Extension) {

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

1 participant