Changing RTV-System

My RTVSystem works by adding the map names in a file called maplist.txt, but I want to just make it so it goes in maps/ and adds them… Can anyone help me out? Thanks

Code:


local cache = {}

local function getmaps()
	local m = file.Read("maplist.txt")
	if(!cache[1]) then
		cache = string.Explode("
",m)
	end
	return cache
end

file.Find?