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

Mime types not respected with overlapping patterns #190

Closed
maarten-k opened this issue Mar 8, 2022 · 2 comments
Closed

Mime types not respected with overlapping patterns #190

maarten-k opened this issue Mar 8, 2022 · 2 comments

Comments

@maarten-k
Copy link

Qdirstat categorizes *.gz as a compressed file and a tar.gz as a compressed archive when looking at the mime categories. However, in practice, these files are both categorized as compressed files. The same problem also occurs with user-defined Mime types.

Minimal reproducible example:

mkdir test
cd test
echo "test" > test.tar.gz
echo "test" > test.gz
qdirstat .
@shundhammer
Copy link
Owner

Yes, you are right. Thank you for reporting this!

@shundhammer
Copy link
Owner

Argh.

It did find the category for the longer one (.tar.gz), but then it continued looking, resulting in the shortest matching one (.gz). Now stopping at the longest hit.

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