acidbase.file_ext

acidbase.file_ext(path: str | Path) str

Return the file extension(s) including compression suffix.

Parameters:

path (str or Path) – File path.

Returns:

Extension string with leading dot, e.g. ".fastq.gz". Empty string when there is no extension.

Return type:

str