I know LFS, and I used it many times. Now I want to be able to replace it with LuaJIT FFI interface, since I need just this directory/file iterator function. Therefore I don't need additional dlls. What Peter write should be good, but when I try to ran it, i got the following:
E:\LuaJIT>luajit files.lua
luajit: files.lua:59: missing declaration for symbol 'forFiles'
stack traceback:
files.lua:59: in main chunk
[C]: ?
59th line is:
tFILES = ffi.C.forFiles("C:\\")
Which was just put on the end of the script. Any idea?