jams.util.filebase

jams.util.filebase(filepath)[source]

Return the extension-less basename of a file path.

Parameters:
filepath : str

Path to a file

Returns:
base : str

The name of the file, with directory and extension removed

Examples

>>> jams.util.filebase('my_song.mp3')
'my_song'