Closed jankeromnes closed 11 years ago
Following discussion on IRC, it seems that adding a "type": { "": "text/plain" }
entry in /
's metadata fixes the problem. No need to make the whole type system default to "text/plain".
@espadrine said he'll add this in his next pull request, which is exciting :)
Note: pull request #195 fixes the undermining issue.
Fixed!
Our current type system assumes that files without extensions are binary.
While that is a common assumption is OSes, I believe it is wrong and unnerving (especially in
tree
) for the following reasons:tree
is inherently more about text files than about binary files, it is safer to assume textgateway.html
, scripts, or both (and why the hell would we require users to call everything "*.txt")tree
are most commonly identified with extensions: mp3, ogg, jpg, png, pdf, zip...firefox
orchromium
, we'll make sure to mark them explicitly as binary)@espadrine please let's change our type logic to default to the
text/plain
mime type when no extension was found.