diff options
| -rw-r--r-- | src/luarocks/fs/lua.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
| 401 | function exists(file) | 401 | function exists(file) |
| 402 | assert(file) | 402 | assert(file) |
| 403 | file = normalize(file) | 403 | file = normalize(file) |
| 404 | return type(file) == "table" | 404 | return type(lfs.attributes(file)) == "table" |
| 405 | end | 405 | end |
| 406 | 406 | ||
| 407 | --- Test is pathname is a directory. | 407 | --- Test is pathname is a directory. |
