Sorry for digging this up from so long ago, but another thread got me interested in trying it out.
On Mon, Jul 13, 2009 at 2:17 AM, Steven Barth
<steven@midlink.org> wrote:
Because I got a few requests by mail a few examples:
...
FS operations:
local fs = require "nixio.fs"
for entry in fs.dir("/tmp") do print(entry) end -- Traverse directory
I just tried this on Ubuntu 9.10 and it displays a bunch of the file entries and then just errors out with this:
lua: /usr/local/share/lua/5.1/nixio/fs.lua:140: attempt to call a nil value
stack traceback:
/usr/local/share/lua/5.1/nixio/fs.lua:140: in function '_recurse'
/usr/local/share/lua/5.1/nixio/fs.lua:142: in function </usr/local/share/lua/5.1/nixio/fs.lua:129>
(tail call): ?
example.lua:89: in function 'main'
example.lua:105: in main chunk
[C]: ?
Any thoughts. So far from my tests I really like this library and it build very easy on Linux. Now I am going to try to build it for Lua for Windows. More details to follow.
--