From 95377aabf99c7dd3c70ac6b5fd9309907efaa5c7 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 14 Jan 2011 11:50:38 -0200 Subject: Fix fs.exists, as pointed out by Doug Currie. --- src/luarocks/fs/lua.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index e055f67e..3a547fe5 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua @@ -401,7 +401,7 @@ end function exists(file) assert(file) file = normalize(file) - return type(file) == "table" + return type(lfs.attributes(file)) == "table" end --- Test is pathname is a directory. -- cgit v1.2.3-55-g6feb