* ffluci.fs.isfile: fixed several typos
This commit is contained in:
parent
4264e6b780
commit
c8a02eec3b
2 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/haserl --shell=luac
|
||||
package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path
|
||||
package.cpath = "/usr/lib/lua/?.so;" .. package.cpath
|
||||
print("Content-Type: text/plain\n")
|
||||
require("ffluci.dispatcher").httpdispatch()
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue