* ffluci.fs.isfile: fixed several typos

This commit is contained in:
Steven Barth 2008-05-07 20:47:22 +00:00
parent 4264e6b780
commit c8a02eec3b
2 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,5 @@
#!/usr/bin/haserl --shell=luac #!/usr/bin/haserl --shell=luac
package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path
package.cpath = "/usr/lib/lua/?.so;" .. package.cpath package.cpath = "/usr/lib/lua/?.so;" .. package.cpath
print("Content-Type: text/plain\n")
require("ffluci.dispatcher").httpdispatch() require("ffluci.dispatcher").httpdispatch()

View file

@ -35,9 +35,9 @@ end
-- Checks whether a file exists -- Checks whether a file exists
function isfile(filename) function isfile(filename)
local fp = io.open(path, "r") local fp = io.open(filename, "r")
if file then file:close() end if fp then fp:close() end
return file ~= nil return fp ~= nil
end end
-- Returns the content of file -- Returns the content of file