Skip to main content

kind_of_path

Function kind_of_path 

Source
pub fn kind_of_path(path: &str) -> FileKind
Expand description

What a file holds by its extension: a still for the image formats the host decodes itself, sound for the audio-only ones, video otherwise. Formats an extension provider reads (an animated GIF, SVG, OpenEXR) are not media nodes’ to guess.