Functions | |
def | guess_type |
Role ==== Replacement for system's mimetype, adding some new types and cleaning up reverse map for cleaner file extensions.
def damn_at.mimetypes.guess_type | ( | url, | |
strict = True |
|||
) |
Try to guess the mimetype for the given file using the standard python mimetypes module. If this fails fallback to libmagic.