D13315: Detect mime type of local files based on their contents
David Faure
noreply at phabricator.kde.org
Tue Sep 18 08:06:03 BST 2018
dfaure added a comment.
(BTW thanks for what you said about FUSE, I agree 100% and it makes me glad to see some people from the opposite camp, when so many people are trying to convince me that network mounts via FUSE is the solution to all problems on earth, see bug 75324)
> currentMimeType() method shouldn't do any detection. It's very misleading
I disagree. This is what's called determination on demand, quite a classic pattern.
> and when there are multiple candidates, choosing the first one on the list is not "accurate" or "real determination".
You skipped the fact that if there are multiple candidates, we first try to sort it out using content detection.
Only if that fails, will we then pick the first mimetype in the list, for lack of any other information. Again, see the MIME spec.
REPOSITORY
R241 KIO
REVISION DETAIL
https://phabricator.kde.org/D13315
To: miklosm, #frameworks, dfaure, broulik
Cc: broulik, ngraham, apol, kde-frameworks-devel, michaelh, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180918/aa74ec46/attachment.html>
More information about the Kde-frameworks-devel
mailing list