linkcheck.mimeutil
File and path utilities.
Functions
|
Add or replace a mimetype to be used with the given extension. |
|
Return MIME type of file, or 'application/octet-stream' if it could not be determined. |
|
Try to read some content and do a poor man's file(1). |
Initialize the local MIME database. |
- linkcheck.mimeutil.add_mimetype(mimedb, mimetype, extension)[source]
Add or replace a mimetype to be used with the given extension.
- linkcheck.mimeutil.guess_mimetype(filename, read=None)[source]
Return MIME type of file, or ‘application/octet-stream’ if it could not be determined.