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
Jeff Drumm ◊ VP and COO ◊ HICG, LLC. ◊ http://www.hicgrp.com
You must be logged in to reply to this topic.
Please don't hesitate to take anonymous feedback survey or leave us a comment.