Removes the file extension part of path and returns the resulting path. If the pat hhas no extension, it is returned unchanged
For a detailed description of the components keyword see get_ext()