replaceFileName

fun replaceFileName(filePath: String, newName: String): String

Replaces the file name portion to a fully qualified file filePath.

This is taken as the first bit of string after last path separator and the first dot instance.