diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-01-24 16:52:21 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-01-24 16:52:21 +0000 |
commit | 80f200377d7ed85ae3f6a93348b386bb63b4aeed (patch) | |
tree | e93a6adee26e92e79299309b89d8a2be57b9fcf8 /lib/menubuilder.lua | |
parent | a96cb599a24a578a98af2e70da40037c00a7db6b (diff) | |
download | acf-core-80f200377d7ed85ae3f6a93348b386bb63b4aeed.tar.bz2 acf-core-80f200377d7ed85ae3f6a93348b386bb63b4aeed.tar.xz |
Started process of removing as many io.popen calls as possible. Not complete.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1695 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/menubuilder.lua')
-rw-r--r-- | lib/menubuilder.lua | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/menubuilder.lua b/lib/menubuilder.lua index 4105db6..5b9509b 100644 --- a/lib/menubuilder.lua +++ b/lib/menubuilder.lua @@ -8,15 +8,9 @@ module(..., package.seeall) require("format") -- returns a table of the "*.menu" tables --- uses the system "find" command -- startdir should be the app dir. local get_candidates = function (startdir) - local t = {} - local fh = io.popen('find ' .. format.escapespecialcharacters(startdir) .. ' -name "*.menu"') - for x in fh:lines() do - t[#t + 1] = x - end - return t + return fs.find_files_as_array(".*%.menu", startdir) end -- Split string into priority and name, convert '_' to space |