PyDocs

Nav

Internet Data Handling

knownfiles

List of type map file names commonly installed. These files are typically named mime.types and are installed in different locations by different packages.
1 Example
>>> import mimetypes
>>> mimetypes.init()
>>> mimetypes.knownfiles
['/etc/mime.types', '/etc/httpd/mime.types', ... ]
>>> mimetypes.suffix_map['.tgz']
'.tar.gz'
>>> mimetypes.encodings_map['.gz']
'gzip'
>>> mimetypes.types_map['.tgz']
'application/x-tar-gz'
from the Python docs
See Also
No see-alsos for mimetypes/knownfiles
0 Notes
No notes for knownfiles