get_filename#

mbgdml.utils.get_filename(path)[source]#

The name of the file without the extension from a path.

If there are periods in the file name with no file extension, will always remove the last one.

Parameters:

path (str) – Path to file.

Returns:

The file name without an extension.

Return type:

str