Function that returns the file extension from an absolute file path or file name. The file extension is always lowercase and includes the dot.
The function extension() is located in the file file.jsxinc.
Usage
var myfilename = "myfile.txt"; var extension = extension(myfilename);
Parameters
| Parameter | Data type | Required | Description |
|---|---|---|---|
| filename | String | ![]() |
The file name or absolute path of the file. |
Return values
| Value | Meaning |
|---|---|
| extension | The extension of the file, such as .txt. |

