return function(path) f = io.open(path, 'r') if (f ~= nil) then io.close(f) return true else return false end end