[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: missing functions (luafilesystem) ?
- From: Javier Guerra <javier@...>
- Date: Tue, 28 Mar 2006 13:49:54 -0500
On Tuesday 28 March 2006 1:35 pm, Mildred wrote:
> I'm actually using luafilesystem but I think it would be great to have
> others functions :
> - a recursive flag for mkdir
> - a copy function (which would be able to copy folders)
> - maybe some functions to know if a file exists
> - basename and dirname
> - chmod, chown
> - a way to create named pipes on unix systems (mkfifo)
> Why these functions are missing ?
most of those are obvious from the *nix point of view, but i think
luafilesystem aims to be platform agnostic. Luiz has a different module:
luaPosix, that exports most of the usual *nix C API.
> - addmetatable(object, key, value) : instead of :
> local mt = getmetatable(object)
> setmetatable(object, mt)
i guess that last line can be left out, making the whole routine just:
not much longer than "addmetatable(object, key, value)"
Description: PGP signature