目录的MIME类型 [英] MIME type for a directory
问题描述
当我尝试使用其内容检测目录的MIME类型时,我得到 text / plain ; charset = utf-8
在Ubuntu上。
有一个文本/目录 IANA标准( http://www.rfc-editor.org/rfc/rfc2425.txt 和< a href =http://www.iana.org/assignments/media-types/text> http://www.iana.org/assignments/media-types/text ),但它被标记为不要弃用。
如果运行Ubuntu 13.04:
$ mimetype / home /
你会得到
/ home /:inode /目录
所以我假设就Ubuntu 13.04安装程序而言,目录mimetype是 inode /目录
欢呼声,
What's the MIME type for an OS directory?
When I attempt to detect a directory's MIME type using its content I get text/plain; charset=utf-8
on Ubuntu.
There is a "text/directory" in the IANA standards (http://www.rfc-editor.org/rfc/rfc2425.txt and http://www.iana.org/assignments/media-types/text) but it was marked "deprecated".
If you run, on Ubuntu 13.04:
$ mimetype /home/
you'll get
/home/: inode/directory
So I assume that as far as the Ubuntu 13.04 setup goes, a directory mimetype is "inode/directory"
cheers,
这篇关于目录的MIME类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!