On Sun, Dec 5, 2010 at 4:35 PM, Cosmin Apreutesei <[email protected]> wrote: >> This looks serious, but I don't have the resources (read: a Windows >> box) to try to reproduce it here. Can anyone help on this one? > > The problem is that the implementation of fs.is_dir() based on lfs > doesn't work with a trailing slash (the error returned is: cannot > obtain information from file `X:\tools\luarocks/' ), while the > fallback one that executes `test -d` does work with a slash. > > The trailing slash is a leftover from path.root_dir(), and it could be > removed by changing line 40 of path.lua into: > > return rocks_dir:match("(.*)%/" .. suffix .. "$")
Thanks for the investigation! This can fix this particular problem, but I think the safest approach is to "normalize" all paths that go to lfs functions. Please replace luarocks/fs/lua.lua with the one that follows attached and let me know the results. -- Hisham
lua.lua
Description: Binary data
_______________________________________________ Luarocks-developers mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
