file_extension()

audeer.file_extension(path)[source]

File extension.

Parameters

path (Union[str, bytes]) – path to file

Return type

str

Returns

extension of file without “.”

Examples

>>> path = "/test/file.wav"
>>> file_extension(path)
'wav'