summaryrefslogtreecommitdiffhomepage
path: root/core/src
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-07 20:47:22 +0000
committerSteven Barth <steven@midlink.org>2008-05-07 20:47:22 +0000
commitc8a02eec3b578515a6defaab0a8364cfbaac1ce5 (patch)
tree82eb5577c6fde1d0e244fdcab5154abc2fa9bf25 /core/src
parent4264e6b7808066686223d0294bd01a84659f9f38 (diff)
* ffluci.fs.isfile: fixed several typos
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ffluci/fs.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ffluci/fs.lua b/core/src/ffluci/fs.lua
index ffa4cb84f..0ca191be9 100644
--- a/core/src/ffluci/fs.lua
+++ b/core/src/ffluci/fs.lua
@@ -35,9 +35,9 @@ end
-- Checks whether a file exists
function isfile(filename)
- local fp = io.open(path, "r")
- if file then file:close() end
- return file ~= nil
+ local fp = io.open(filename, "r")
+ if fp then fp:close() end
+ return fp ~= nil
end
-- Returns the content of file