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

dirname function is no longer in acf-core-0.9.0

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