diff --git a/lurker.lua b/lurker.lua index 4cd8f0f..9200ee7 100644 --- a/lurker.lua +++ b/lurker.lua @@ -15,9 +15,17 @@ local lurker = { _version = "1.0.1" } local dir = love.filesystem.enumerate or love.filesystem.getDirectoryItems -local isdir = love.filesystem.isDirectory local time = love.timer.getTime or os.time -local lastmodified = love.filesystem.getLastModified + +local function isdir(path) + local info = love.filesystem.getInfo(path) + return info.type == "directory" +end + +local function lastmodified(path) + local info = love.filesystem.getInfo(path, "file") + return info.modtime +end local lovecallbacknames = { "update", @@ -259,4 +267,3 @@ end return lurker.init() -