Skip to main content

detect

Function detect 

Source
pub fn detect(path: &Path) -> (Option<OutputFormat>, OutputCompression)
Expand description

Format and compression implied by a file name’s extensions (case-insensitive): an optional .gz/.zst after .json, .jsonl/.ndjson or .tsv/.tab. None when the name has no recognised format extension.