FileInfo.extension

Get extension property.

class FileInfo
@property
string
extension
()

Return Value

Type: string

The file extension (excluding the dot).