Lua does have file system access: http://www.lua.org/manual/5.2/manual.html#6.8
for file in io.popen("ls "..dir):lines() do ... end
This should never be used in real applications and a proper filesystem module should be used instead. But, I find it very useful for quick one-shot scripts I write for batch processing some files.