basename_wo_ext()

audeer.basename_wo_ext(path, *, ext=None)[source]

File basename without file extension.

Parameters
Return type

str

Returns

basename of directory or file without extension

Examples

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