title: “FILE::BASE Function” date: 2024-11-10 author: “laplante@plcb.ca” category: “GOWEB/FILE”
file::base — Return the last element of a file path.
The base
function returns the last element of a path.
Trailing path separators are removed before extracting the last element.
base
returns "."
.base
returns a single separator.res={{
base("", "a/b/c.txt");
}}.
return
res=[".","c.txt"].