FILE_TYPE

Syntax

FILE_TYPE(<string>)

Description

Returns the file extension of a file path.

Examples

Column1

FILE_TYPE returns

/dir1/file.txt

txt

/file.txt

txt

C:\dir1\file.tx

txt

C:\file.txt

txt

file.txt

txt

/dir1/dir2

λ (= an empty string)

/dir1/dir2/

λ

C:\dir1\dir2

λ