dir.lua

local dirent = require "posix.dirent"

local ok, files = pcall (dirent.dir "/var/log")
if not ok then
  print ("/var/log: " .. files)
end

for _, f in ipairs (files) do
  print (f)
end
generated by LDoc 1.4.3 Last updated 2015-03-01 09:06:02