diff options
author | Steven Barth <steven@midlink.org> | 2008-05-08 20:52:20 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-08 20:52:20 +0000 |
commit | f547a274f7c1ab03ad7463c227146b4683e9be27 (patch) | |
tree | 8d38a95d0cfcdb48a2820675eff534493f1bb99e /core/src/fs.lua | |
parent | 9a5184324c34fcccd728de910f6fa22b970c4374 (diff) |
* Minor bugfixes
Diffstat (limited to 'core/src/fs.lua')
-rw-r--r-- | core/src/fs.lua | 12 |
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 |