The function name sounds a bit wierd. How about renaming it to _getFilenameWithoutExtension?