Retrieves the extension portion of a file path, excluding the dot. For example, for "c:/temp/take25.c3d"
, "c3d" will be returned.
System
getFileExtension "filePath" |
Name | Type | Required | Comments |
---|---|---|---|
filePath | string | yes | Full path to the file to get the extension for. Be sure to use forward slashes instead of back slashes. |
None
string
Returns the file's extension.
// Get the extension of a file path. string $extension; string $path = "c:/temp/take25.c3d"; $extension = `getFileExtension $path`; print $extension; |