Platform agnostic method to get the file name or basename of a path treating both / as well as \ as directory separators.
path like string
remove the file extension if any
Basename of a path with the file suffix
Platform agnostic method to get the file name or basename of a path treating both / as well as \ as directory separators.