lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> - open(path,"d+") creates a directory
> - open(path,"d"[,attributes]) returns an iterator over the directory path,
>   returning filenames of existing files matching the attributes table

Interesting but perhaps it is not a good idea to overload open when mkdir
exists and also readdir etc.

> - remove(path) also removes (empty) directories

os.remove already does that, at least under POSIX. I don't know about Windows.

Perhaps your proposal can be first fleshed out as a working library
so that we evaluate it...