This topic contains 2 replies, has 2 voices, and was last updated by Jeff Drumm 9 years, 8 months ago.
Making lfs (luafilesystem) – Available to Iguana?
You must be logged in to reply to this topic.
This topic contains 2 replies, has 2 voices, and was last updated by Jeff Drumm 9 years, 8 months ago.
Hi All,
I’m looking for an OS-agnostic way to do some lower-level file and folder/directory manipulation. For example, I’d like to read in a directory’s contents as a list, stat() each file to obtain creation/modification/access date information, and/or process each file.
There’s a module for Lua that does exactly what I need called luafilesystem, but it requires a compiled shared library (lfs.so on Linux) to work. I have the source for luafilesystem, but I can’t figure out how to compile it so that the embedded Lua doesn’t give me this message when I “require ‘lfs'” in the editor:
error loading module ‘lfs’ from file ‘/usr/local/lib/lua/5.1/lfs.so’:
/usr/local/lib/lua/5.1/lfs.so: undefined symbol: lua_gettop
Any thoughts?
Thanks!
Jeff Drumm ◊ VP and COO ◊ HICG, LLC. ◊ http://www.hicgrp.com
Um, apparently not. At least os.fs anyway
Sorry about that . . . os.fs does exactly what I need.
Thanks!
Jeff Drumm ◊ VP and COO ◊ HICG, LLC. ◊ http://www.hicgrp.com
You must be logged in to reply to this topic.