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
getFileFromPath( "C:\temp\file.txt" );
Result: file.txt
Additional Examples
my_file = getFileFromPath( "filepath\file.ext" );
dump( my_file );
// file.ext
Related
Last updated
Was this helpful?