title: “FILE::EXTENSION Function Documentation” author: “laplante@plcb.ca” date: “2024-09-25” version: “1.0.0”
file::extension — Return the extension of a file.
The extension
function returns the extension of a given file.
If the file has no extension, an empty string is returned.
res={{
extension("plcb.ca");
}}.
return
res=.ca.
res={{
extension("/a/b/c", "test.a", "google.com");
}}.
return
res=["",".a",".com"].