Skip to main content

detect_from_path

Function detect_from_path 

Source
pub fn detect_from_path(path: &str) -> Compression
Available on crate feature compression only.
Expand description

Codec detection by filename suffix. Case-insensitive. Looks at the final extension only: foo.csv.gz → Gzip, foo.gz.zst → Zstd.