dir.lua

local posix = require "posix"

files, errstr, errno = posix.dir("/var/log")
if files then
  for a,b in ipairs(files) do
    print(b)
  end
else
  print(errstr)
end
generated by LDoc 1.4.3 Last updated 2015-01-04 12:06:34