lastPathComponent
-
function
-
The lastPathComponent() function accepts a file path as a parameter and returns the final component of that path
-
Examples: +
put the lastPathComponent of "/tmp/me/help.txt" —> "help.txt"
function
The lastPathComponent() function accepts a file path as a parameter and returns the final component of that path
Examples: +
put the lastPathComponent of "/tmp/me/help.txt" —> "help.txt"