mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
* ffluci.fs.isfile: fixed several typos
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user