removeFileExtension

fun removeFileExtension(filename: String?, removeAllExtensions: Boolean): String?

Return

the string without the extensions

Parameters

filename

the string path representation of the file

removeAllExtensions

if true all extensions including the last are removed