Return the file extension(s) including compression suffix.
path (str or Path) – File path.
Extension string with leading dot, e.g. ".fastq.gz". Empty string when there is no extension.
".fastq.gz"
str