#41768File: add getFilenameWithoutExtensionFile()
Description
There is currently no way to get the filename without its extension, e.g. to create a new name for a file converted to another format. We should add such a method and at the same time fix some shortcomings of the current solution (e.g. .tar.gz is not recognized as an extension).