getFileExtension

open fun getFileExtension(file: File): String

Return the extension of file.

Return

the extension of file

Parameters

file

The file.

open fun getFileExtension(filePath: String): String

Return the extension of file.

Return

the extension of file

Parameters

filePath

The path of file.