basename
Syntax
Details
Examples
Example 1
var path = "extracted/test/testdata.csv"
# Copy the path as we'll need it later
var file = ${path}
# Note: use the NAME of the variable not the value
basename file
# The variable called 'file' now contains the result
print The basename of the path '${path}' is '${file}'
var path = "testdata.csv"
var file = ${path}
basename file
print The basename of the path '${path}' is '${file}'Example 2
Last updated