aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-09-07 23:39:57 -0300
committerHisham Muhammad <hisham@gobolinux.org>2012-09-07 23:40:13 -0300
commitc867912a5a09653dacf9bd691b6dce9f99e9a08a (patch)
tree5d22dce4b56067750cee9ba7ef2463eb197625a3 /src
parent5996fea6e7d9c6963f98648ca5b7966b7f706008 (diff)
downloadluarocks-c867912a5a09653dacf9bd691b6dce9f99e9a08a.tar.gz
luarocks-c867912a5a09653dacf9bd691b6dce9f99e9a08a.tar.bz2
luarocks-c867912a5a09653dacf9bd691b6dce9f99e9a08a.zip
Add back correct function that went missing in the latest reorganization.
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.