Help with adding dirs

Im new to Lua script with Gmod Servers, so I have a question.
I have lots of files and just want to skip addfile and go straight to addfolder… I am unsure how to do this, I’ve searched tuts but I am still confused…

The script is located in lua/autorun/server/military.lua

Dir I need is
models/military2/air
models/military2/bomb
models/military2/missle

materials/models/military2/air
materials/models/military2/bomb
materials/models/military2/missle

Can anyone hook me up with the code for all 6 folders please?

[lua]
function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
local list = file.FindDir("…/"…dir…"/*")
for _, fdir in pairs(list) do
if fdir != “.svn” then // don’t spam people with useless .svn folders
AddDir(dir…"/"…fdir)
end
end

for k,v in pairs(file.Find("../"..dir.."/*")) do
	resource.AddFile(dir.."/"..v)
end

end

AddDir(“models/yourmodels”);
[/lua]

Should it look like


 AddDir("materials/models/military2") // recursively adds everything in a directory to be downloaded by client 
local list = file.FindDir("../"..dir.."/*")
for _, fdir in pairs(list) do
if fdir != ".svn" then // don't spam people with useless .svn folders
AddDir(dir.."/"..fdir)
end
end
 
for k,v in pairs(file.Find("../"..dir.."/*")) do
resource.AddFile(dir.."/"..v)
end
end
 
AddDir("models/military2/air");

Yes, Just FYI that addDir function is fully recursive so if you wanted you could use AddDir(“models/military”) and it would still get the content of those folders.