Commit 2881a0c3 authored by Ted Trask's avatar Ted Trask

dirname function is no longer in acf-core-0.9.0

parent 4d855403
......@@ -3,7 +3,7 @@ module (..., package.seeall)
-- Load libraries
require("modelfunctions")
--require "posix"
require("posix")
require("fs")
require("format")
require("validator")
......@@ -71,7 +71,7 @@ local validate_general_config = function( config )
end
local is_valid_filename = function(filename)
local dirname = dirname(filename)
local dirname = posix.dirname(filename)
return validator.is_valid_filename(filename) and string.match(dirname, baseurl) and not string.match(dirname, "%.%.")
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