From c8a02eec3b578515a6defaab0a8364cfbaac1ce5 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 7 May 2008 20:47:22 +0000 Subject: * ffluci.fs.isfile: fixed several typos --- core/src/ffluci/fs.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/src/ffluci') diff --git a/core/src/ffluci/fs.lua b/core/src/ffluci/fs.lua index ffa4cb84fa..0ca191be94 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 -- cgit v1.2.3