In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
When judging whether the suffix name is consistent with the file type, two problems need to be solved: one is how to judge the MINE-type of the file according to the content of the file, which can be realized by the magic library that comes with the system; the other is how to judge the corresponding MINE-type according to the suffix name. Apache also gives a solution to this problem, providing a comparison table between the suffix name and MINE-type.
However, there are some differences between the MINE-type provided by Apache and the MINE-type provided by the system's own magic library, and the comparison table provided by the magic library of python is the same as the MINE-type provided by the magic library, and the common suffix is basic cover, so we mainly use the suffix of python and MINE-type comparison table, and add other reference tables to form a custom suffix and MINE-type comparison table.
If there are specific suffixes that need to be added, you can also reorder and integrate them using the python script I provided.
The list in the attachment integrates the suffix-MEME-type list provided by Python mimetypes and the list provided by the following URL:
Http://webdesign.about.com/od/multimedia/a/mime-types-by-file-extension.htm
Attachment: http://down.51cto.com/data/2367642
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.