目录的MIME类型 [英] MIME type for a directory

查看:166
本文介绍了目录的MIME类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我尝试使用其内容检测目录的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆