smart_reader

Function smart_reader 

Source
pub fn smart_reader(p: impl AsRef<Path>) -> Result<Box<dyn Read>>
Expand description

Open a file from a path as a MultiGzDecoder or a BufReader depending on whether the file has the magic number for gzip (0x1f and 0x8b)