aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/fs/unix/tools.lua6
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)
202end 202end
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.
207function is_writable(file) 207function exists(file)
208 assert(file) 208 assert(file)
209 return fs.execute(vars.TEST, "-w", file) 209 return fs.execute(vars.TEST, "-e", file)
210end 210end
211 211
212--- Test is pathname is a directory. 212--- Test is pathname is a directory.