i'm having problems getting code i wrote using luafilesystem-1.4.2 to work properly with luafilesystem-1.5.0.
here's the code in question: require "lfs" local path = script_path .. jester.conf.help_path print(lfs.currentdir()) print(path) local dir = lfs.dir(path) local file_list = {} for file in dir do -- Exclude directory references and hidden files. if not string.match(file, "^%..*") then table.insert(file_list, file) end end here's the error message: colossus$/sw/etc/luarocks: jhelp /sw/bin/lua51: ./jester/help.lua:70: bad argument #1 to '(for generator)' (directory metatable expected, got nil) stack traceback: [C]: in function '(for generator)' ./jester/help.lua:70: in function <./jester/help.lua:29> (tail call): ? [C]: in function 'plain_require' /sw/share/lua/5.1/luarocks/require.lua:256: in function 'require' jester/jester.lua:2: in main chunk [C]: ? those print() lines in the code were added for debugging, and return the same exact thing using both 1.4.2 and 1.5.0: /usr/local/freeswitch/scripts jester/help does 1.5.0 have a problem opening directories from a relative path from the current directory? that's what it seems like... any ideas? chad _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/