From 4264e6b7808066686223d0294bd01a84659f9f38 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 7 May 2008 20:23:42 +0000 Subject: * Last API changes before 0.4 API softfreeze --- core/src/ffluci/fs.lua | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) (limited to 'core/src/ffluci/fs.lua') diff --git a/core/src/ffluci/fs.lua b/core/src/ffluci/fs.lua index 3eb562b80a..ffa4cb84fa 100644 --- a/core/src/ffluci/fs.lua +++ b/core/src/ffluci/fs.lua @@ -53,26 +53,6 @@ function readfile(filename) return data end --- Returns the content of file as array of lines -function readfilel(filename) - local fp, err = io.open(filename) - local line = "" - local data = {} - - if fp == nil then - return nil, err - end - - while true do - line = fp:read() - if (line == nil) then break end - table.insert(data, line) - end - - fp:close() - return data -end - -- Writes given data to a file function writefile(filename, data) local fp, err = io.open(filename, "w") @@ -107,5 +87,8 @@ function dir(path) return dir end --- Alias for lfs.mkdir -mkdir = posix.mkdir \ No newline at end of file +-- Alias for posix.mkdir +mkdir = posix.mkdir + +-- Alias for posix.rmdir +rmdir = posix.rmdir \ No newline at end of file -- cgit v1.2.3