1#!/usr/libexec/flua 2 3local n = require("nuage") 4 5print(n.dirname("/my/path/path1")) 6if n.dirname("path") then 7 n.err('Expecting nil for n.dirname("path")') 8end 9if n.dirname() then 10 n.err("Expecting nil for n.dirname") 11end 12