diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/fs/unix/tools.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua index 3cee8a30..7e29fc0a 100644 --- a/src/luarocks/fs/unix/tools.lua +++ b/src/luarocks/fs/unix/tools.lua | |||
| @@ -201,12 +201,12 @@ function unzip(zipfile) | |||
| 201 | return fs.execute(vars.UNZIP, zipfile) | 201 | return fs.execute(vars.UNZIP, zipfile) |
| 202 | end | 202 | end |
| 203 | 203 | ||
| 204 | --- Test is file/directory is writable. | 204 | --- Test is file/directory exists |
| 205 | -- @param file string: filename to test | 205 | -- @param file string: filename to test |
| 206 | -- @return boolean: true if file exists, false otherwise. | 206 | -- @return boolean: true if file exists, false otherwise. |
| 207 | function is_writable(file) | 207 | function exists(file) |
| 208 | assert(file) | 208 | assert(file) |
| 209 | return fs.execute(vars.TEST, "-w", file) | 209 | return fs.execute(vars.TEST, "-e", file) |
| 210 | end | 210 | end |
| 211 | 211 | ||
| 212 | --- Test is pathname is a directory. | 212 | --- Test is pathname is a directory. |
