For the complete documentation index, see llms.txt. This page is also available as Markdown.

GetFileFromPath

Extracts a filename from an absolute path.

Method Signature

GetFileFromPath(path=[string])

Arguments

Argument
Type
Required
Description
Default

path

string

true

The absolute path to extract the filename from

Examples

Basic Example

Run Example

getFileFromPath( "C:\temp\file.txt" );

Result: file.txt

Additional Examples

Run Example

my_file = getFileFromPath( "filepath\file.ext" );
dump( my_file );
 // file.ext

Last updated

Was this helpful?