PyDocs

Nav

Internet Data Handling

read_mime_types

mimetypes

function (source)
  • read_mime_types(file)
Load the type map given in the file named by file, if it exists. file must be a string specifying the name of the file to read. The type map is returned as a dictionary mapping file extensions, including the leading dot ('.'), to strings of the form 'type/subtype'. If the file does not exist or cannot be read, None is returned.
0 Examples
No examples for mimetypes/read_mime_types.
See Also
No see-alsos for mimetypes/read_mime_types
0 Notes
No notes for read_mime_types