Use luci.fs.access instead of luci.fs.isfile where applicable
[project/luci.git] / applications / luci-ushare / luasrc / controller / ushare.lua
index 2fdea4e..958f247 100644 (file)
@@ -18,7 +18,7 @@ module("luci.controller.ushare", package.seeall)
 function index()
        require("luci.i18n")
        luci.i18n.loadc("ushare")
-       if not luci.fs.isfile("/etc/config/ushare") then
+       if not luci.fs.access("/etc/config/ushare") then
                return
        end