Skip to main content

detect

Function detect 

Source
pub fn detect(
    file_path: &str,
    first_bytes: Option<&[u8]>,
) -> Option<ContentType>
Expand description

Detect content type for a file by extension, then magic bytes