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:
Trueifxis an existing file with a compressed extension.- Return type:
Examples
>>> is_compressed_file("sample.fastq") False