goalie.is_compressed_file

goalie.is_compressed_file(x: str | PathLike[str]) bool

Check whether the input is a compressed file.

Checks based on file extension.

Parameters:

x (str or os.PathLike) – File path.

Returns:

True if x is an existing file with a compressed extension.

Return type:

bool

Examples

>>> is_compressed_file("sample.fastq")
False