pub fn detect_path(path: &Path) -> Result<Option<FormatId>>
Detects the compression format for a given file path (or “-” for stdin).