file_name
Extracts the file name from a file path.
file_name(x:string) -> string
Description
Section titled “Description”The file_name
function returns the file name component of a file path,
excluding the parent directories.
Examples
Section titled “Examples”Extract the file name from a file path
Section titled “Extract the file name from a file path”from {x: file_name("/path/to/log.json")}
{x: "log.json"}