summaryrefslogtreecommitdiffhomepage
path: root/core/src/fs.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-08 20:52:20 +0000
committerSteven Barth <steven@midlink.org>2008-05-08 20:52:20 +0000
commitf547a274f7c1ab03ad7463c227146b4683e9be27 (patch)
tree8d38a95d0cfcdb48a2820675eff534493f1bb99e /core/src/fs.lua
parent9a5184324c34fcccd728de910f6fa22b970c4374 (diff)
* Minor bugfixes
Diffstat (limited to 'core/src/fs.lua')
-rw-r--r--core/src/fs.lua12
1 files changed, 2 insertions, 10 deletions
diff --git a/core/src/fs.lua b/core/src/fs.lua
index 0ca191be94..4639ac4a86 100644
--- a/core/src/fs.lua
+++ b/core/src/fs.lua
@@ -29,9 +29,7 @@ module("ffluci.fs", package.seeall)
require("posix")
-- Glob
-function glob(pattern)
- return posix.glob(pattern)
-end
+glob = posix.glob
-- Checks whether a file exists
function isfile(filename)
@@ -79,13 +77,7 @@ basename = posix.basename
dirname = posix.dirname
-- dir wrapper
-function dir(path)
- local dir = {}
- for node in posix.files(path) do
- table.insert(dir, 1, node)
- end
- return dir
-end
+dir = posix.dir
-- Alias for posix.mkdir
mkdir = posix.mkdir