FILE::EXTENSION 1g 2024-09-25 laplante@plcb.ca GOWEB/FILE


title: “FILE::EXTENSION Function Documentation” author: “laplante@plcb.ca” date: “2024-09-25” version: “1.0.0”

category: “GOWEB/FILE”

Name

file::extension — Return the extension of a file.

Synopsis

Description

The extension function returns the extension of a given file.
If the file has no extension, an empty string is returned.

Parameters

Examples

res={{
    extension("plcb.ca");
}}.

return

res=.ca.

res={{
    extension("/a/b/c", "test.a", "google.com");
}}.

return

res=["",".a",".com"].

Author

See also

Version