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:
luajit: files.lua:59: missing declaration for symbol 'forFiles'
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?2011/6/6 marbux <email@example.com>
On Mon, Jun 6, 2011 at 6:47 AM, steve donovan <firstname.lastname@example.org> wrote:
> Why not just use LuaFileSystem? There _might_ be case where it's tooTwo example functions using LFS here,
> slow for the job, but you would have to push the file system hard to
> find that case ;)
<http://lua-users.org/wiki/DirTreeIterator>. Another on the LFS site
I haven't tested any of them but had bookmarked them for possible later use.