You may need to rename this api since this is already taken by pull request #4379. Renaming it to getFilenameAndExtension or splitFilenameAndExtension may be better.