Yaxo Bug
Today, after at least 4 years of using
yaxo, when fixing MIME types for
directories, it occurred to me that having application/octet-stream for all
files (and directories) without extensions might be actually a bug of yaxo
rather than deficiency of QMimeDatabase
, a Qt’s interface for MIME types.
Turns out, I understood what a local file is differently than Qt maintainers.
QMimeDatabase::mimeTypeForUrl
turns on deep file inspection only for local
files, i.e. files which have a “file” scheme as per QUrl
documentation.
QUrl("foo.txt")
doesn’t have a “file” scheme, but QUrl("file:foo.txt")
does.
The meaning of relative/absolute URLs for QUrl
with absolute file paths is as
well different than my common sense, but this is another story.