jams.util.filebase

jams.util.filebase(filepath)[source]

Return the extension-less basename of a file path.

Parameters:
filepathstr

Path to a file

Returns:
basestr

The name of the file, with directory and extension removed

Examples

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