Commit ab75983a authored by Ted Trask's avatar Ted Trask

basename function is no longer in acf-core-0.9.0

parent 24141177
module(..., package.seeall)
-- Load libraries
require("posix")
require("modelfunctions")
require("fs")
require("format")
......@@ -153,7 +154,7 @@ end
function list_certs()
local list = {}
for file in fs.find(".*%.pem", baseurl) do
list[#list+1] = basename(file)
list[#list+1] = posix.basename(file)
end
return cfe({ type="list", value=list, label="IPSEC Certificates" })
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment