[][src]Function skellige::prelude::gzip::is_gzipped

pub fn is_gzipped<T>(path: T) -> Result<bool, FuError> where
    T: AsRef<Path>, 

Returns true if the given path is a gzipped file

Examples

use fungus::prelude::*;

let tmpdir = PathBuf::from("tests/temp").abs().unwrap().mash("gzip_is_gzipped_doc");
let gzipped = tmpdir.mash("../../alpine-base.tgz");
assert_eq!(gzip::is_gzipped(gzipped).unwrap(), true);