FILE::BASE 1g 2024-11-10 laplante@plcb.ca GOWEB/FILE


title: “FILE::BASE Function” date: 2024-11-10 author: “laplante@plcb.ca” category: “GOWEB/FILE”

version: “1.0.0”

Name

file::base — Return the last element of a file path.

Synopsis

Description

The base function returns the last element of a path.
Trailing path separators are removed before extracting the last element.

Parameters

Examples

res={{
    base("", "a/b/c.txt");
}}.

return

res=[".","c.txt"].

Author

See also

Version