extension

abstract val extension: String?(source)

Represents the optional file extension of the file system entry.

The extension is the portion of the filename following the last dot ('.'), excluding the dot itself. For example, in the file name "document.txt", the extension would be "txt". If the file does not have an extension or the entry is not a file, this value may be null.